Solved

Apache redirect help needed

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
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). #…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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