Rewrite default.asp
3 posts
• Page 1 of 1
Rewrite default.asp
Hi,
Can someone share the code to do the following:
Visitor goes to somesite.com/somefolder/default.asp and Helicon Ape changes this to somesite.com/somefolder/
Same for www.somesite.com/somefolder/default.asp to www.somesite.com/somefolder/
Many thanks in advance.
Regards,
Frank
Can someone share the code to do the following:
Visitor goes to somesite.com/somefolder/default.asp and Helicon Ape changes this to somesite.com/somefolder/
Same for www.somesite.com/somefolder/default.asp to www.somesite.com/somefolder/
Many thanks in advance.
Regards,
Frank
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Rewrite default.asp
Hello,
Try using the following:
Regards
Andrew
Try using the following:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^([^/]+)/default\.asp$ /$1 [NC,R=301,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^([^/]+)$ /$1/default.asp [NC,L]
Regards
Andrew
- warriorfullights
- Posts: 19
- Joined: 28 Sep 2012, 01:54
Re: Rewrite default.asp
Thanks for sharing the code. I already used it and it worked.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 22 guests