• I’m going to be installing wordpress on a domain that a static html site. I need people to be able to access my site while the transition to wordpress is happening, that is, while I’m building the wordpress site.

    It’s my understanding that most servers give priority to index.html rather than index.php pages. Does this mean I can just install wordpress in the root folder and be building the site and anyone who goes to https://www.whatever.com will see and be able to use the old site. Then when I’m done I’ll be able to, say, rename the index to something like index.oldhtml and people will see the new site?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Jd Roberts. Just create a new directory on your server and install wp

    Thread Starter jdroberts

    (@jdroberts)

    How will that work? If I put it in example.com/wp won’t people to go to that url to get to the site? I want example.com to show the wp site.

    Is your static site just an index.html file?

    if so you could edit your .htaccess file with the following code and put it at beginning of .htaccess file:-

    Options -Indexes
    DirectoryIndex index.html index.php

    This means priority will be given to index.html. Then when you visitors go to https://www.example.com they will see the index.html file. While you are working on your WordPress blog you can view it by going to https://www.example.com/index.php.

    Once you think that your site is ready for everyone to view then change the htaccess code to

    Options -Indexes
    DirectoryIndex index.php index.html

    This means the priority will be given to index.php which is the WordPress index file. Which means anyone viewing https://www.example.com will see the WordPress blog.

    I hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Install wordpress along side static html site’ is closed to new replies.