Rewritten URLs with parameter length > 255 don't work

Posted by philfreo on Server Fault See other posts from Server Fault or by philfreo
Published on 2010-05-11T21:39:49Z Indexed on 2010/05/11 21:44 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

I'm using mod_rewrite to rewrite URLs like this:

http://example.com/1,2,3,4/foo/

By doing this in .htaccess:

RewriteRule ^([\d,]+)/foo/$ /foo.php?id=$1 [L,QSA]

It works fine, except for when "1,2,3,4" turns into a string longer than 255 characters, Apache returns a "403 Forbidden".

Is there some apache setting I should tweak?

© Server Fault or respective owner

Related posts about apache

Related posts about mod-rewrite