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! Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.