httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kunal" <>
Subject [users@httpd] Rewrite rules !!
Date Tue, 28 Feb 2006 12:17:59 GMT
Hello All,

I am newbie to rewrite rules. I am trying to redirect requests coming to
to using below mod_rewrite rules in .htaccess. 

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/test/(.*)/(.*)/(.*)
RewriteRule ^/(.*) /test.php?cid=%1&pid=%2&type=%3 [L]

RewriteCond %{REQUEST_URI} ^/test/(.*)/(.*)
RewriteRule ^/(.*) test.php?cid=%1&pid=%2 [L]

RewriteCond %{REQUEST_URI} ^/test/(.*)
RewriteRule ^/(.*) test.php?cid=$1 [L]

Above rule does not seem to be working. Am I doing something wrong?

Any help would be appreciated.

Thank you,
View raw message