how do i take my site off line to the pubil but still be able to access it myself?

how do i take my site off line to the pubil but still be able to access it myself?

  • lol
    • The Incredible Code Injector

    Hi Rick,

    You can use .htaccess file (in the home directory of your site):

    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} !^xxx.xxx.xxx.xxx$
    RewriteRule (.*) ../maintenance/index.html

    xxx.xxx.xxx.xxx is your IP (you can add mor Ip’s)

    ../maintenance/index.html is a nice page where you ask people to be patient…

    Laurent.

  • lol
    • The Incredible Code Injector

    Hi PC,

    Thank you very much! :slight_smile:

    I prefer the .htaccess method, it avoids to install an additional plugin, and I have a nice maintenance page!

    IMHO Installing plugins without moderation is dangerous in many ways ….

    Now I understand that people not very comfortable with this kind of manipulation lean toward the plugin.

    Laurent,

  • PC
    • WPMU DEV Initiate

    Hey Laurent,

    You are most certainly welcome.

    I would not disagree with you on this one. However if its just to show up a maintenance mode then a plugin should not be a bad idea.

    However if its disabling the access for everyone else but you, .htaccess is the best way I reckon :slight_smile:

    Cheers

    PC

    Sales &Support

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.