Results 1 to 4 of 4

How to redirect entire site for 1hr

This is a discussion on How to redirect entire site for 1hr within the General Discussion forums, part of the vBSEO SEO Plugin category; A very valuable member of our forum community passed away last night so I want to close the entire site ...

  1. #1
    Member
    Real Name
    Ian
    Join Date
    Sep 2008
    Posts
    65
    Liked
    3 times

    How to redirect entire site for 1hr

    A very valuable member of our forum community passed away last night so I want to close the entire site for 1hr and redirect everyone to a single tribute page and not sure how to do it.

    I have a VbAdvanced CMPS home page in the root and my forums are located in their own folder (root/forum/).

    Is there a way that any person going to any part of the site can be trapped and sent to a single page?

    Thanks for your help

  2. #2
    Member
    Real Name
    Jean-Paul Horn
    Join Date
    Sep 2007
    Posts
    30
    Liked
    0 times
    Sorry to hear about your loss.

    A few steps:
    1. Create a custom static html page called tribute.html with all the info about this forum member (the tribute page) and place this in the root of your website.
    2. Put this code in your .htaccess for both / and /forum/

    Code:
    RewriteCond %{REMOTE_HOST} !123\.456\.789\.012
    RewriteCond %{REQUEST_URI} !^/tribute\.html$
    RewriteRule .* /tribute.html [R=503,L]
    The first line is optional, but if you add your own IP address there it would let you access the normal site instead of also being redirected to the tribute page. The 2nd line is a check what URL is requested and if it's any different then tribute.html the rule kicks in and passes on to line 3, which does a temporary redirect (status code 503 is meant for maintenance, "Service temporarily unavailable") and redirects any user to /tribute.html.

    This code goes after 'RewriteEngine On', but before any other rewrite rules present in your .htaccess file(s).

    Please make sure the tribute.html page has noindex, noarchive for robots!
    Code:
    <meta name="robots" value="noindex, noarchive">
    Good luck and I feel for your loss.

  3. #3
    Member
    Real Name
    Ian
    Join Date
    Sep 2008
    Posts
    65
    Liked
    3 times
    Thank you very much iphone

  4. #4
    Member
    Real Name
    Ian
    Join Date
    Sep 2008
    Posts
    65
    Liked
    3 times
    ...

Similar Threads

  1. Sitemap for entire website
    By hiken in forum General Discussion
    Replies: 4
    Last Post: 09-23-2008, 11:58 PM
  2. Rewriting an entire system?
    By 2005 in forum Custom Rewrite Rules
    Replies: 1
    Last Post: 07-19-2008, 09:39 PM
  3. installed vbseo and entire site is down !!!
    By tms12 in forum Troubleshooting
    Replies: 3
    Last Post: 12-23-2007, 03:54 PM
  4. Software to check entire forums!
    By msimonds in forum General Discussion
    Replies: 1
    Last Post: 03-13-2006, 01:15 PM

Posting Permissions

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