WordPress.org

Forums

Changing .htaccess (4 posts)

  1. ozstar
    Member
    Posted 11 months ago #

    Hi,

    I would like to create a temporary .htaccess file which will have the visitor go to an index.html file instead of the WP index.php.

    I don't want visitors seeing the construction of the site. I'd rather them see a static index. file until I am ready to launch it.

    I have the standard WP .htaccess file with install.

    Thanks

    you

    oz

  2. Pioneer Valley Web Design
    Member
    Posted 11 months ago #

    add only this:

    order deny,allow
    deny from all
    allow from 111.222.333.444

    Make sure to include your ip address in above instead of 111.222.333.444.

    You can add others as needed with additional allow line.

  3. ozstar
    Member
    Posted 11 months ago #

    Thank you.

    Unfortunately that didn't work for me :-)

    I may have not said it correctly..

    This is the .htaccess I have now...

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    I have an index.html file which I want visitors to see at the moment.

    I also want to be able to see the WP site I am working on using the index.php

    I will put http://www.domain.com/index.php to get the WP site and others will just use http://www.domanin.com to get to the index.html.

    Hope that's better.

    Thanks again

    oz

  4. Pioneer Valley Web Design
    Member
    Posted 11 months ago #

    First.

    Unfortunately that didn't work for me :-)

    Fortunately, it has worked for everyone else.

    How do you intend to let your site differentiate you from everyone else? By IP address, perhaps?

    Also, above are the standard WP rewrite rules for permalinks. Most hosts provide a 'coming soon' landing page or provide a temp url. One can also develop sites locally, then transfer to remote server when done.

Reply

You must log in to post.

About this Topic