max length of url 257 characters for mod_rewrite?
Posted
by Daniel
on Server Fault
See other posts from Server Fault
or by Daniel
Published on 2010-03-05T00:14:53Z
Indexed on
2010/03/08
17:21 UTC
Read the original article
Hit count: 426
mod-rewrite
|.htaccess
My url scheme is /foo/var1-var2-var3.../bar
I am using these mod_rewrite rules:
RewriteBase /foo/
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [PT,L]
If the length of the string 'var1-var2...' is greater than 257 characters then an error 403 Forbidden and a 404 are returned. However, if the length of the 'var1-var2...' string is 257 characters or less and subsequently followed by a slash the length of the remaining url may be any length. How does one overcome this limit?
© Server Fault or respective owner