default to Default
3 posts
• Page 1 of 1
default to Default
Hello,
Is there a way to rewrite the following URL:
http://mysite.com/default.aspx
to
http://mysite.com/Default.aspx
Is there a way to rewrite the following URL:
http://mysite.com/default.aspx
to
http://mysite.com/Default.aspx
Re: default to Default
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.
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.
Re: default to Default
Thanks Anton,
The rewrite didn't work on its own but I added the R=301 flag and it does what I want.
The rewrite didn't work on its own but I added the R=301 flag and it does what I want.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests