View Full Version : Temp Redirects
davemcnally
04-27-2008, 03:48 PM
I thought this had come up before but couldn't find where that was. I'm now at the point of my redesign that I want to work on it on the live site, so that once I'm done, it's all in the correct place etc.
The thing is, I don't want any visitors seeing things in a bit of a mess whilst I update things, install plugins etc. I therefore want to redirect them to a temporary holding page whilst still having access myself. My blog install is on the domain root, how would I go about redirecting anyone else to, for example, ...davemcnally.net/temp/ whilst still being able to view and work on the root myself?
Thanks for any advice :bigsmile:
samwoodfin
04-27-2008, 04:11 PM
Would something like Maintenace Mode (http://wordpress.org/extend/plugins/maintenance-mode/) work, Dave? I haven't tried it, so I can't vouch for it.
I have used Theme Test Drive (http://wordpress.org/extend/plugins/theme-test-drive/), though. It was pretty handy with 2.3.
davemcnally
04-27-2008, 04:38 PM
Would something like Maintenace Mode (http://wordpress.org/extend/plugins/maintenance-mode/) work, Dave? I haven't tried it, so I can't vouch for it.
I have used Theme Test Drive (http://wordpress.org/extend/plugins/theme-test-drive/), though. It was pretty handy with 2.3.
Maintenance Mode should do the trick, I knew there was something like that available. Thanks Sam :)
BPartch
04-27-2008, 04:56 PM
You can also upload a file named index.html and add: DirectoryIndex index.html index.php index.htm to your .htaccess file and so on to that line and they will load in the order they are listed assuming the file exists if not it will go to the next.
davemcnally
04-27-2008, 11:38 PM
You can also upload a file named index.html and add: DirectoryIndex index.html index.php index.htm to your .htaccess file and so on to that line and they will load in the order they are listed assuming the file exists if not it will go to the next.
This may be the better option for me, easier to create a custom holding page I suppose and it means not having to install another plugin ;)
BPartch
04-28-2008, 01:15 AM
I suppose and it means not having to install another plugin ;)Exactly :)
SarahG
04-28-2008, 07:58 AM
Just a quick question, is this a new design for your domain davemcnally? If so then serving index.html to visitors will only work if they go to your domain root. If they go to an internal page (via a search engine, bookmark etc) they'll still see your site. You need to lock down the entire directory/install. The plugin will do that nice and neatly or you could just password protect the entire domain and put a reason in the restriction box. Not as neat but no need for a plugin.
You could redirect all of your visitors to a specific page, however it'd redirect you too unless you use a condition to exclude yourself such as your IP.
davemcnally
04-28-2008, 11:03 AM
Good point...I didn't think about internal pages. Guess I would be better using the plugin or something then as I have no idea about protecting a directory with a password, .htaccess is something I rarely look at.
SarahG
04-28-2008, 12:48 PM
If you have cpanel then you can password protect it directly in that under the password protected directories icon, but the plugin will give a cleaner response.
davemcnally
04-28-2008, 01:34 PM
If you have cpanel then you can password protect it directly in that under the password protected directories icon, but the plugin will give a cleaner response.
Thanks for all the help :)
Think, I'm going to go with the plugin afterall!
samwoodfin
04-28-2008, 03:19 PM
*rejoices at having guessed correctly* :rockon:
davemcnally
04-29-2008, 12:45 AM
*rejoices at having guessed correctly* :rockon:
Ha! congrats....although I went with the password in the end...all done now though!
samwoodfin
04-29-2008, 01:30 AM
Ha! congrats....although I went with the password in the end...all done now though!
Damnit. There's no animated-raspberry-issuing smiley.
Who doesn't include an animated-raspberry-issuing smiley?
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.