Possible To Redirect All Pages To Index Page?

Discussion in 'Site & Server Administration' started by bad_bob00, Feb 27, 2009.

  1. #1
    Hi,

    I've got a website that isn't really doing much (has a few pages to it) and I was thinking of redirecting any traffic to the site to the index page. Is this possible? If so, any idea how?


    Thanks for any help
     
    bad_bob00, Feb 27, 2009 IP
  2. richybear

    richybear Peon

    Messages:
    51
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I operate on a VPS Virtual Private Server and I can do what follows. As for shared hosting I'm unfamilure if you can do the same.


    YES.... Create a ( .htaccess ) you just do this in notepad copy and paste the following replace your URL's with what's there.>> You can use 302 Temporary or 301 Permanent

    Options +FollowSymLinks
    RewriteEngine on


    Redirect 302 /funtime.htm http://www.yoursite.com
    Redirect 302 /register.htm http://www.yoursite.com

    Upload the file to your server where your site files are stored.
     
    richybear, Feb 28, 2009 IP
    bad_bob00 likes this.