Solved

Apache redirect help needed

Posted on 2006-11-20
4
187 Views
Last Modified: 2010-03-04
If :

www.vanityurl.com points to www.mysite.com/somedir/ 
in the apache config file how can I have:

 www.vanityurl.com/exclusive/ point to www.mysite.com/somedir/exclusive/

Currently anything going to www.vanityurl.com* goes to www.mysite.com/somedir/ 
0
Comment
Question by:894359
[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
  • 2
4 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 500 total points
ID: 17985580
It's pitty You haven't provided current config, but my guess is
RedirectMatch ^/exclusive http://www.mysite.com/somedir/exclusive/
RedirectMatch ^/$ http://www.mysite.com/somedir/

But in fact the alone
Redirect /  http://www.mysite.com/

will redirect
/exclusive/anything to http://www.mysite.com/exclusive/anything
in other words, it will append anything user typed in the browser to the http://www.mysite.com/
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 17985582
Sorry, In latter case You need
Redirect / http://www.mysite.com/somedir/
0
 

Author Comment

by:894359
ID: 17988989
The thing is dns point to a cname and from there we use the vhost_prod.map file to set redirects. We also have a prod.conf file that contains the apache rewrites
0
 

Author Comment

by:894359
ID: 17989004
I'm guessing that I would have to remove the entry from the vhost_prod.map file and use the prod.conf file and only have apache rewrite rules?
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

729 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