Maintenance + htaccess

Discussion in 'Site & Server Administration' started by Sw00p, Mar 12, 2009.

  1. #1
    How can I show my user a maintenance page when I am working on the site?
    How could the .htaccess look like? ..what's the best way?
     
    Sw00p, Mar 12, 2009 IP
  2. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Create your page, for example maintenance.html and your htaccess should have this line:

     
    Camay123, Mar 12, 2009 IP
  3. Sw00p

    Sw00p Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    k but this line would show me the maintenance site too...
    I would like to access page and only show the maintenance to others...
    Iam sure it has to be done with IP checking!
     
    Sw00p, Mar 13, 2009 IP
  4. internetstromer

    internetstromer Member

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #4
    Can you specicify what kind of site you are running if you are running wordpress than there is plugin maintainance mode after implementing that you can serve the maintainance page to other.

    If you are running some thing else like php CMS are something else please specify so I will suggest you accordingly
     
    internetstromer, Mar 17, 2009 IP
  5. Dimma

    Dimma Well-Known Member

    Messages:
    631
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Something like this
    RewriteCond %{REMOTE_ADDR} !^your.ip.address.goes.here$ 
    RewriteRule ^/?.* /maintenance-page.html  [R=302]
    Code (markup):
     
    Dimma, Mar 18, 2009 IP