10-07-2009, 01:28 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Location: Newcastle, UK
Posts: 113
Thanks: 3
|
Redirecting site to temporary folder
I'm going to be updating one of my sites soon. The new site will be running on WordPress and I'd like to redirect users to a temporary site I have made while I get everything set up for my new site.
The temporary site is located in a folder called temp. I tried using htaccess to redirect anyone that goes to mydomain.com to mydomain.com/temp. My .htaccess file looks like this:
Code:
DirectoryIndex test.php
That sends them to test.php which then redirects them to mydomain.com/temp using a 301 redirect.
However, now I have installed WordPress in the root folder of my domain even if I go to mydomain.com/index.php I am still redirected to the temp folder.
What is the best way to do this so that I can still work on my site whilst users are redirected to the temp site
|
|
|