Changing .htaccess (4 posts)

  1. ozstar
    Posted 1 year ago #


    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.




  2. Pioneer Web Design
    Posted 1 year 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
    Posted 1 year 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]
    # 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


  4. Pioneer Web Design
    Posted 1 year ago #


    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.

Topic Closed

This topic has been closed to new replies.

About this Topic