Solved

Apache redirect help needed

Posted on 2006-11-20
4
181 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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

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…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

759 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

19 Experts available now in Live!

Get 1:1 Help Now