Solved

htaccess dilemma

Posted on 2014-04-15
2
201 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

695 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