301 Redirect from / and /folder/index.php to /folder/

Discussion in 'Apache' started by Stephen20, Aug 23, 2010.

  1. #1
    I want to 301 redirect from www.domain.tld/ to www.domain.tld/folder/ which I can get to work this way:

    RedirectMatch permanent ^/$ http://www.domain.tld/folder/
    Code (markup):
    But at the same time I want to 301 redirect from www.domain.tld/folder/index.php to www.domain.tld/folder/

    I searched really long, but I can't get it to work. I guess I will have to just use mod_rewrite (and not mod_alias). Anybody experienced out there who could help me? Thanks in advance!
     
    Stephen20, Aug 23, 2010 IP
  2. Anup Debnath

    Anup Debnath Guest

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    Anup Debnath, Aug 23, 2010 IP