Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Friendly Url Setting - TroubleshootingFriendly Url Setting - Troubleshooting
Previous
 
Next
New Post
8/16/2011 2:50 PM
 

Hi all!

In DNN, I'm using Host Settings -> Friendly Url Settings to try and make a page url SEO-friendly. But I keep getting an error and I don't know why.  It would be great if somebody here can spot something I'm missing, or explain to me why this doesn't work.

Current URL format (successfully used by a module on the page):
http://localhost/dnn/Admin/MyPage.aspx?title=news-article-name-written-here

Desired URL format:
http://localhost/dnn/Admin/MyPage/news-article-name-written-here

"Friendly Url Settings" rule:
MATCH: .*/MyPage/(.*)
REPLACE WITH: ~/Admin/MyPage.aspx?title=$1

Error:
Server Error in Application "DEFAULT WEB SITE/DNN"
Internet Information Services 7.5 Error Summary HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

As a side note, I don't want to buy any specialized DNN modules to do this (or use the free iFinity one). 

Thanks in advance for your help!  :)

 
New Post
8/16/2011 11:29 PM
 
unless you've edited the IIS metabase in iIS7.5 you will need to ensure that page names end in an extension (i.e. preserve the .aspx) otherwise IIS thinks you want a directory and cannot find that folder, hence the 404.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/17/2011 1:24 PM
 
Thanks for getting back so quickly!  Actually, I did figure that out yesterday.  But just to be thorough, I'll post what I did to solve this problem:
  1. Installed the urlrewrite extension on my IIS (http://www.iis.net/download/urlrewrite)
  2. Added the following code snippet to the <system.webServer> tag of the dnn site's web.config:
<rewrite>
    <rules>
        <rule name="UrlRewriteService" stopProcessing="true">
            <match url="^.*/MyPage/(.*)$"/>
            <action type="Rewrite" url="Admin/MyPage.aspx?title={R:1}" />
        </rule>
    </rules>
</rewrite>

Thanks again for your input!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Friendly Url Setting - TroubleshootingFriendly Url Setting - Troubleshooting


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out