djelica Posted October 20, 2008 Share Posted October 20, 2008 Hi all. I have problems with mod_rewrite in apache 2.2 Pattern: RewriteRule ^([-A-Za-z0-9]+)/([0-9]+)([-A-Za-z0-9]+).html$ http://www.example.com/index.php?product_id=$2 [L] works like charm in apache 1.3.41 but it wont work in 2.0 and 2.2 Result in apache 1.3.41: http://www.example.com/foo/1-foo.html Result in apache 2.0 and 2.2: http://www.example.com/index.php?product_id=1 I am stuck here and i dont know what to do :S I would like that my links shows like in apache 1.3.41, is it possible ? Any solution ? Any help will be appreciated! Link to comment https://forums.phpfreaks.com/topic/129228-differences-in-mod_rewrite-between-apache-1341-and-20-need-help/ Share on other sites More sharing options...
corbin Posted October 20, 2008 Share Posted October 20, 2008 I bet if you go to the first link style it will work. It's probably your pages that are linking differently for some reason. Link to comment https://forums.phpfreaks.com/topic/129228-differences-in-mod_rewrite-between-apache-1341-and-20-need-help/#findComment-670388 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.