The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> Redirecting extension help
post Jun 7 2015, 02:16 PM
Post #1

Group: Members
Posts: 9
Joined: 9-October 14
Member No.: 21,650

I want to redirect all index default .asp .aspx .pl .php etc extension to already have a code that seems to work but dont know if its right or gonna cause issues.

RewriteCond %{THE_REQUEST} ^[A-Z]+\ /([^/]+/)*default(\.[a-z0-9]+)?[^\ ]*\ HTTP/
RewriteRule ^(([^/]+/)*)default(\.[a-z0-9]+)?$$1 [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]+\ /([^/]+/)*index(\.[a-z0-9]+)?[^\ ]*\ HTTP/
RewriteRule ^(([^/]+/)*)index(\.[a-z0-9]+)?$$1 [R=301,L]

Can someone tell me if this code is good?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 18th October 2019 - 09:23 AM