?
Solved

htaccess dilemma

Posted on 2014-04-15
2
Medium Priority
?
202 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 1000 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

801 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