.htaccess problem

Discussion in 'Apache' started by buldozerceto, Dec 11, 2007.

  1. #1
    I have problems with htaccess here is the following code

    The problem:
    I have the URL http://www.example.com/Clothing/ it redirects fine
    but http://www.example.com/Clothing/?g=a doesn't pass the g parameter($_GET['g']).
    Also it doesn't work with removed L
    I have PHP 5 and apache 2 web server.
    Whats the problem?

    Thanks
     
    buldozerceto, Dec 11, 2007 IP
  2. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #2
    After lots of googling I found it - QSA -query string append
    RewriteEngine on
    RewriteBase /
    RewriteRule ^(.*)/page-([0-9]*)\.htm[l]?$ /cat.php?cat=$1&p=$2 [QSA]
    RewriteRule ^(.*)/$ /cat.php?cat=$1 [QSA]
     
    buldozerceto, Dec 13, 2007 IP