0

I need to GET a param with a length of 1727 characters, now, I can get only 512. How I can do this with .htaccess?

Current htaccess:

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Gabriel Santos
  • 4,934
  • 2
  • 43
  • 74
  • This may help you [maximum length of HTTP GET request](http://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request) – Havelock Sep 20 '12 at 03:59

2 Answers2

2

It's not related to webserver. Proxy servers and browsers have their own url length limitations and likely that's what caused the issue.

zerkms
  • 249,484
  • 69
  • 436
  • 539
  • @Gabriel Santos: well, I wanted to say that it's not webserver's issue. Check access logs and see that url is already passed truncated. – zerkms Sep 20 '12 at 04:05
1

To solve the problem, add the follow line to .htaccess:

php_value suhosin.get.max_value_length 2000
Gabriel Santos
  • 4,934
  • 2
  • 43
  • 74
  • 1
    it was because that line is incomplete, the htaccess line should be: `php_value suhosin.get.max_value_length 2048`, omitting the `php_value` is what caused the 500. Having the command blocked (as indeed it was) would not cause the 500 – nbsp Nov 04 '13 at 18:48