Simple fix? Apache directory redirect
am 03.08.2007 22:01:58 von HiroHaving trouble with a redirect I haven't had to handle before. My site
is setup as www.mysite.com. The site will only respond to requests
coming into the application formed that way.
I have redirects setup so that mysite.com, thisismysite.com and
www.thisismysite.com are all redirected to www.mysite.com. These
redirects along with a bunch of other redirects are part of a virtual
host all setup on one IP. The real host is setup on a different IP.
Unfortunately, someone in marketing decided to publish something in
print that has www.thisismysite.com/resource1 as the link for a
resource.
Redirect:
ServerName www.thisismysite.com
ServerAlias thisismysite.com mysite.com
RedirectMatch ^/$ http://www.mysite.com
Site:
DocumentRoot /usr/local/www/192.168.1.101/docs
Servername files.mysite.com
Include conf/hosts/192.168.1.101.common
How do I redirect all requests that come into www.thisismysite.com/resource1
and thisismysite.com/resource1 to go to www.mysite.com/resource1
instead?
I really appreciate the help.