Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

Apache redirect help needed

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
894359
Asked:
894359
  • 2
  • 2
1 Solution
 
ravenplCommented:
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
 
ravenplCommented:
Sorry, In latter case You need
Redirect / http://www.mysite.com/somedir/
0
 
894359Author Commented:
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
 
894359Author Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now