default to Default

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 41
Joined: 25 May 2012, 17:31

default to Default

09 Mar 2015, 16:26

Hello,

Is there a way to rewrite the following URL:

http://mysite.com/default.aspx

to

http://mysite.com/Default.aspx

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: default to Default

10 Mar 2015, 02:07

Hello,

Sure, here's the rule if you want rewrite:

RewriteBase /
RewriteRule ^default\.aspx$ /Default.aspx [L]

If you actually need redirect, add a R=301 flag after the rule.

User avatar
Posts: 41
Joined: 25 May 2012, 17:31

Re: default to Default

10 Mar 2015, 10:40

Thanks Anton,

The rewrite didn't work on its own but I added the R=301 flag and it does what I want.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 0 guests