jonshutt
22 Sep 2009, 07:49 PM
Hi there, I'm working on a new version of a site, and i've set it all up at
test.mysite.com
what I want to do, is create an .htaccess code so that poeple can view the site by going to
www2.mysite.com
then later, I wanted to do the same thing, and have it so people at www.mysite.com are actually being shown pages from test.mysite.com
Sounds a bit confusing, but the site included many videos, and doing a redirect will save me from uploading and shifting hundreds and hundreds of MB around on the website
Here's what I have so far:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} www2.mysite.org.nz [NC]
RewriteRule ^(.*)$ http://test.mysite.org.nz/$1 [L]
This works, in that if you go to www2.mysite.org.nz it redirects to http://test.mysite.org.nz, but it's changing the URL the viewer sees. I don't want this, I want the viewer to think they're still at the www2 domain.
Help appreciated.
Jon
test.mysite.com
what I want to do, is create an .htaccess code so that poeple can view the site by going to
www2.mysite.com
then later, I wanted to do the same thing, and have it so people at www.mysite.com are actually being shown pages from test.mysite.com
Sounds a bit confusing, but the site included many videos, and doing a redirect will save me from uploading and shifting hundreds and hundreds of MB around on the website
Here's what I have so far:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} www2.mysite.org.nz [NC]
RewriteRule ^(.*)$ http://test.mysite.org.nz/$1 [L]
This works, in that if you go to www2.mysite.org.nz it redirects to http://test.mysite.org.nz, but it's changing the URL the viewer sees. I don't want this, I want the viewer to think they're still at the www2 domain.
Help appreciated.
Jon