czyadgrl
Member
Posted 2 weeks ago #
I'm looking for a way to temporarily redirect my home page to a wordpress.com blog while I work on my new site.
I've tried setting up a redirect thru my hosting company, but then I cannot see changes to my site as I make them in Wordpress.
How can I redirect other visitors to my home page and still be able to see the changes I am making in Wordpress and continue to work on it?
Thx!
Put a redirect to wordpress.com in your index.php and install WordPress in a sub-folder of your web-root folder (e.g. blog) then access it as mydomain.com/blog. Then when ready to go live, and to make WordPress available at http://mydomain.com just change in Settings->General, the Blog address (URL) to http://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the blog folder)
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./blog/wp-blog-header.php');
?>
Then update your permalinks in Settings->Permalinks.