WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Test new wordpress site when old html one is live (6 posts)

  1. Miellino
    Member
    Posted 1 year ago #

    Hi,
    I am trying to convert my old html site to a WordPress site.
    To make it I installed WordPress and also some themes on the root directory.

    The problem is that the site must remain live together until is not all ok.

    the old one point on index.htm, the WP one to index.php.

    If I setup a WP Themes and I don't add a rule to .htaccess it goes always on index.php.

    If I set on .htaccess this rule :
    DirectoryIndex index.htm index.php index.html
    I access to old site index.htm but index.php is inaccessible also when I point directly to http://www.mysite.com/index.php

    I have tried also this rules, to permit my ip address to go on index.php, and others to index.htm, but it doen't workes (where 000 are subst with my ip address):

    SetEnvIf HTTP:X-FORWARDED-FOR ^000\.000\.000\.000$ owner
    <IfDefine owner>
    DirectoryIndex index.php
    </IfDefine>
    <IfDefine !owner>
    DirectoryIndex index.htm
    </IfDefine>

    Also this :

    SetEnvIf Remote_Addr ^000\.000\.000\.000$ owner
    <IfDefine owner>
    DirectoryIndex index.php
    </IfDefine>
    <IfDefine !owner>
    DirectoryIndex index.htm
    </IfDefine>

    If I rename index.php to indexa.php I have the two site but when I try to use WP I always get redirected to htm homepage.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    To make it I installed WordPress and also some themes on the root directory.

    That's where you went wrong. Start by installing WordPress in a sub-folder off the root domain. This will allow you to work on the new site without disturbing the old site. Then, when you are ready to launch the new site, remove all of the old files in the root domain folder and see Giving_WordPress_Its_Own_Directory.

  3. Miellino
    Member
    Posted 1 year ago #

    Thanks I will try it

  4. Miellino
    Member
    Posted 1 year ago #

    I have moved all WordPress file to a subdir.
    And for the Mysql db what I must do ?
    I must recreate it on that subdir or I can setup wp-config.php ?
    Now the WP site doens't workes

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Just install WordPress as usual. Your database isn't part of any folder structure.

  6. Miellino
    Member
    Posted 1 year ago #

    after installing it again everything worked perfectly thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic