Masking a dynamic URL

Discussion in 'Apache' started by mutasim, Mar 6, 2007.

  1. #1
    mutasim, Mar 6, 2007 IP
  2. mutasim

    mutasim Active Member

    Messages:
    256
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    EDIT: I got this far... someone kindly gave me the code

    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule ^ma\.php$ page.php?content=ma

    but this only works for ma :(
     
    mutasim, Mar 6, 2007 IP
  3. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteRule ^(.+)\.php$ page.php?content=$1
    Code (markup):
     
    rodney88, Mar 6, 2007 IP