Jump to content

differences in mod_rewrite between apache 1.3.41 and 2.0 (need help)


djelica

Recommended Posts

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.