Trying to remove .aspx extension
Last Post 10/25/2016 10:44 AM by John Cornelison. 2 Replies.
Author Messages
Mike
Nuke Ace
Nuke Ace
Posts:46


--
08/22/2013 2:53 AM  
Hi I am using the following in my web.config file

<rewrite> 
       <rules> 
         <rule name="Remove .aspx from URL" stopProcessing="true"> 
           <match url="(.*)\.aspx$" /> 
           <action type="Redirect" url="/{R:1}" /> 
         </rule> 
       </rules> 
     </rewrite>  


however this is causing some problems with recaptcha I managed to add a new handler so it used captcha without the .aspx extension.

If I try to use an edit box and add a picture it fails as it is looking for default.aspx which it can not longer find as the .aspx has been removed is there another way of doing this

thanks

Mike
Joseph Craig
DNN MVP
Posts:11667


--
08/22/2013 5:35 AM  
Upgrade to DNN 7.1 and then edit your web.config file to choose the Advanced mode for friently URL rewriting.

Joe Craig, Patapsco Research Group
Complete DNN Support
John Cornelison
Nuke Newbie
Nuke Newbie
Posts:1


--
10/25/2016 10:44 AM  
Yep, for DNN 7.1 and later, see:
http://www.dnnsoftware.com/blog/int...-providers


---