0

I have a clients site at domain.com/index.html and installed Wordpress on the same server.. I need to keep the html pages up until the WP site is complete. How can I view the Wordpress site on the frontend via domain.com/index.php? Do I need to change the .htaccess file? Thanks..

1
  • 1
    why not put WP site in a sub folder for the moment? Commented Aug 3, 2010 at 20:44

4 Answers 4

2

Install WP in another directory, as pointed out, and then use a plugin like WordPress › Absolute Privacy « WordPress Plugins to restrict access to those logged in and turn off RSS feeds. Set your WP privacy options, too, to block search bots while the site is under dev.

Sign up to request clarification or add additional context in comments.

Comments

1

Perhaps the simplest solution would be to install WordPress into a /blog directory and then do a 301 redirect into the blog directory when you're happy to go live.

Otherwise you're likely to run into issues if you rename the main WordPress index.php file.

[UPDATE] I'd also recommend adding a robots.txt file into the /blog directory to ensure the WordPress data isn't prematurely indexed by Google, etc.

Comments

1

Thanks for the answers but I couldn't move the installation as the client had it all setup that way. That's why I needed a way to keep the index.html up while being able to view the index.php for development and not redirecting me to the root when viewing.

So here is the solution that worked for me..

  1. I installed the plugin "Maintenance Mode" http://wordpress.org/extend/plugins/maintenance-mode/

  2. I took the complete HTML from the index.html page and place it in the Maintenance Mode plugin template file.

  3. Activated the plugin and it worked like a charm

This way I could keep the old site up and work on the wordpress site. When you are logged in you can see the full wordpress site. When you are not logged in you see the "Maintenance mode" template.. Which for me was the Old index.html site.

Thanks all!

Comments

0

Setup a subdomain like preview.example.com, develop there until it's the site is ready to launch. You can even add a .htacess to add password protection.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.