mod rewrite help needed.

Discussion in 'Apache' started by baris22, Nov 1, 2008.

  1. #1
    baris22, Nov 1, 2008 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +FollowSymLinks +Indexes
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([^.]+)/([^.]+)\-([^.]+)\.html$ search.php?q=$1&s=$3 [L]

    if index isn't in the search.php?q= URL the script will have to add something there.

    If every URL has index-

    RewriteRule ^([^.]+)/index\-([^.]+)\.html$ search.php?q=$1&s=$2 [L]
     
    Nintendo, Nov 6, 2008 IP