Announcement

Collapse
No announcement yet.

htaccess help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    htaccess help

    I have a website that I want to retire. Before I shut everything down, I like a splash page that tell users the site is closed. How do I redirect all the pages on that site to a splash page using htaccess?

    Thanks

    #2
    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^/shutdown.html
    RewriteRule .* http://domain.com/shutdown.html [R=301,L]
    David Hubbard
    CIO
    Miva
    [email protected]
    http://www.miva.com

    Comment


      #3
      Thanks David. So those 3 line of codes are all I need on the htaccess page? How about DirectoryIndex ?

      Comment


        #4
        Directory index isn't needed because any request for anything other than /shutdown.html will be redirected to shutdown.html.
        David Hubbard
        CIO
        Miva
        [email protected]
        http://www.miva.com

        Comment

        Working...
        X