Solved

htaccess dilemma

Posted on 2014-04-15
2
194 Views
Last Modified: 2014-04-15
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
Comment
Question by:ddantes
2 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 250 total points
ID: 40002269
Try removing nc (nocase). This will only match if the request is all caps:
Rewriterule ^MAU(.*)$ http://www.mauivacationrental.com$1 [r=301]
0
 

Author Comment

by:ddantes
ID: 40002348
Perfect.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now