• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

htaccess dilemma

I added some code to my .htaccess , redirecting requests for a subfolder to the root domain, because there is a third-party site which is referring visitors to a subfolder which no longer exists (/MAU):

Rewriterule ^MAU(.*)$ http://www.mauivacationrental.com$1 [r=301,nc]

Unexpectedly, this has disrupted access to an existing subfolder on my site, directing browsers to a default "non-existent URL" site.  Here is the URL which is now broken:
 
http://www.mauivacationrental.com/Maui-Beaches

Please advise how I can perform the redirect and avoid interfering with the valid link.
0
ddantes
Asked:
ddantes
1 Solution
 
Dan CraciunIT ConsultantCommented:
Try removing nc (nocase). This will only match if the request is all caps:
Rewriterule ^MAU(.*)$ http://www.mauivacationrental.com$1 [r=301]
0
 
ddantesAuthor Commented:
Perfect.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now