mod_rewrite difference Apache 2.0 and 2.2 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I have just noticed yesterday that one of my mod_rewrite rules which works fine in Apache 2.0 doesn't seem to work in Apache 2.2.

Here is the rule:

RewriteRule ^portfolio/([0-9]+)(/)?$ portfolio.php?serie=$1

So a request to portfolio/ID is supposed to be send to portfolio.php?serie=ID. This works fine on the Apache 2.0 installation but on the Apache 2.2 server the ID is somehow not passed to the script.

However, when I change the rule to:

RewriteRule ^folio/([0-9]+)(/)?$ portfolio.php?serie=$1

and call the page with folio/ID it is passed to the script. Alternatively it also works when I rename the file to something != rewrite rule, instead of changing the redirect.

Is this supposed to be this way? Again, it works in Apache 2.0 as expected, but not in Apache 2.2.

Any comments on this issue will are greatly appreciated.

Thanks,
Jan







---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux