Support » Fixing WordPress » Changing .htaccess

  • 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.




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

    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 to get the WP site and others will just use to get to the index.html.

    Hope that’s better.

    Thanks again



    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing .htaccess’ is closed to new replies.