Solved

htaccess dilemma

Posted on 2014-04-15
2
195 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

862 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

23 Experts available now in Live!

Get 1:1 Help Now