htaccess redirect all pages to index.html

Discussion in 'HTML & Website Design' started by okgaz, Sep 1, 2008.

  1. #1
    Hi,

    I've got a simple problem. I want to redirect all pages on my site to my index.html. Preferably as a temporary 302 redirect.

    so,
    /category/cat1/
    /page1.php
    etc... should all show the content that is in index.html

    Anybody know what I should put in my .htaccess file?
     
    okgaz, Sep 1, 2008 IP
  2. mordimi

    mordimi Active Member

    Messages:
    177
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    this should work
     
    mordimi, Sep 6, 2008 IP
  3. maco

    maco Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks mate you are genius. It worked on my site. Saved me lots of time.
     
    maco, Aug 1, 2009 IP
  4. greag

    greag Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #4
    after 4 hours of searching this fixed my problem. Thank you SO much
     
    greag, Sep 28, 2013 IP