• A client has an existing html site. I will be making a new WordPress site for her. I did this once, a long time ago, and want to make sure it will still work:

    I want to keep her current site running, but also install the WP files into the same location, rather than making the WP site in a separate folder and then move everything atd the end. If I edit her .htaccess file to say:

    DirectoryIndex index.html

    will that be sure to keep traffic going to index.html and not index.php? None of her other existing files are named the same as the WP files, so no accidental overwriting will occur.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    WordPress needs index.php to open.

    My suggestion is to install WP in its own directory like: http://www. example.com/wp/

    Thread Starter DebT

    (@debbiet)

    Yes Tara, WP needs index.php to open. Why is why I want to

      temporarily

    divert traffic to the existing index.html — so I can develop the WP site, keep the current site visible and not have to redirect the domain later to a new directory or move the WP site like I’ve done in the past.

    My thought is that I can change .htaccess file for now to keep the html site visible, and then when the WP site is done I will remove DirectoryIndex from the .htaccess.

    Am I clear? Can you understand what I’m trying to do?

    PS I tried to underline “temporarily” above and although the tags look fine, it’s doing something weird. What’s that about?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mixing existing site with new WordPress’ is closed to new replies.