Test new wordpress site when old html one is live

  • Unknown's avatar

    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.

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • Unknown's avatar

    Your question is about a self-hosted WordPress blog and you’ll find help at the WordPress.org forums. http://wordpress.org/support/

  • Unknown's avatar

    thanks I have seen the bot

  • The topic ‘Test new wordpress site when old html one is live’ is closed to new replies.