Results 1 to 5 of 5
  1. #1
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default Changing the root directory? +REP

    Hey guys, say I wanted my site to go to maintenance page instead of index.html

    How would I do it?

    thx x

    drink up this bottle of yeah
    and P A I N T your body on me


  2. #2
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Just put this in index.html
    HTML Code:
    <script>
    window.location="maintenancepage.html";
    </script>
    There's a way to do it with meta tags, but I can't remember it.

    OR put this in index.php
    PHP Code:
    header("Location: maintenancepage.html"); 

  3. #3
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Or on cpanel go to Domains > Redirects.

    Select your domain from the drop down and put maintenancepage.html in the 'Redirects to-->' Box. Leave redirect with or without www ticked.


  4. #4
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    I usually do this through cPanel. Redirects smooth and good

  5. #5
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Use cPanel, as you don't want to go through all pages adding that code. Alternatively use your .htaccess, and make a rewrite rule.

    FYI the <meta> tag way is: <meta http-equiv="refresh" content="0;page.html" />

    Bold being seconds until it redirects, underline being where to redirect to.
    How could this hapen to meeeeeeeeeeeeeee?lol.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •