More Redirect Help.. with Directories

Discussion in 'PHP' started by MakeThatDollar, Dec 23, 2008.

  1. #1
    Ok I have a directory, lets call it members, and anything inside this directory, I want redirected to a page called members.php.

    So I tried this:

    Redirect 301 /members/$ http://www.domain.com/members.php

    But it does not appear to be working.

    Can someone help?
     
    MakeThatDollar, Dec 23, 2008 IP
  2. hackfanatic

    hackfanatic Peon

    Messages:
    29
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi again :),

    Try this

    RewriteEngine on
    RewriteRule ^(.*)members(.*)$ members.php [L]
     
    hackfanatic, Dec 23, 2008 IP
  3. MakeThatDollar

    MakeThatDollar Notable Member

    Messages:
    4,451
    Likes Received:
    158
    Best Answers:
    0
    Trophy Points:
    225
    #3
    I add to make it like this:

    RewriteEngine on
    RewriteRule ^(.*)members/(.*)$ members.php [L]

    Thanks again! :D
     
    MakeThatDollar, Dec 23, 2008 IP
    Smyrl likes this.