sz_tech Posted October 30, 2013 Share Posted October 30, 2013 Hello, I have this rule in htaccess file that handles URL for item,Options AllRewriteEngine OnRewriteBase /www/RewriteCond %{THE_REQUEST} \ /www/item\.php\?id=([0-9]+)&([^&\ ]+)RewriteRule ^ %1/%2? [L,R=301]RewriteRule ^([0-9]+)/(.*)$ item.php?id=$1&$2 [L,QSA,NE] in same htaccess I need to handle catlist alsowith this rule:RewriteCond %{THE_REQUEST} \ /www/category\.php\?id=([0-9]+)&([^&\ ]+)RewriteRule ^ %1/%2? [L,R=301]RewriteRule ^([0-9]+)/(.*)$ category.php?id=$1&$2 [L,QSA,NE] When I put them together only first one worksAny solutions or ideasThank You Link to comment https://forums.phpfreaks.com/topic/283439-rewrite-rule-for-two-pages-in-same-thaccess/ Share on other sites More sharing options...
sz_tech Posted October 31, 2013 Author Share Posted October 31, 2013 This one works RewriteRule ^I-([0-9]+)/(.*)$ item.php?id=$1&$2 [L,QSA,NE] in same htaccess I need to handle catlist alsowith this rule:RewriteRule ^C-([0-9]+)/(.*)$ category.php?id=$1&$2 [L,QSA,NE] Link to comment https://forums.phpfreaks.com/topic/283439-rewrite-rule-for-two-pages-in-same-thaccess/#findComment-1456352 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.