• Resolved Miellino

    (@miellino)


    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter Miellino

    (@miellino)

    Thanks I will try it

    Thread Starter Miellino

    (@miellino)

    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

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

    Thread Starter Miellino

    (@miellino)

    after installing it again everything worked perfectly thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Test new wordpress site when old html one is live’ is closed to new replies.