SMF Support > SMF 2.0.x Support
406 not acceptable
(1/1)
Joe_Dean:
Sometimes when someone clicks on one of my clients 'forums' tab on their main page (outside the forum), they get redirected to a 406 not acceptable error. I'm not sure what's causing the issue, I don't see anything wrong with the URL...
The actual tab link points to: http://www.crrpg.com/forum/index.php
...which is where the viewers are supposed to be directed to upon clicking the tab. However, sometimes the viewer is directed to this URL: http://www.crrpg.com/forum/index.php?PHPSESSID=c885270ff243c6aec1cde8a539114afc;www
...which is causing the 406 errors.
But this problem only happens SOMETIMES - not every time the tab is clicked. So not always are these extra parameters referenced in the link.
vbgamer45:
This is an issue with mod_security.
Check out this topic
http://www.simplemachines.org/community/index.php?topic=34270
Oldiesmann:
It's a problem with SMF sticking the ";www" after the session ID. The server is thinking that the ";" is part of the PHPSESSID string, which is illegal.
The ".../index.php?PHPSESSID=...;www" URL occurs when users try to access the forum without the "www." in the URL.
To fix this error, add the following code to the beginning of index.php, right below the "<?php" tag:
--- Code: ---@ini_set(arg.separator_input, ';&');
--- End code ---
Navigation
[0] Message Index
Go to full version