News:

Join the Facebook Fan Page.

Main Menu

406 not acceptable

Started by Joe_Dean, December 07, 2008, 11:24:32 PM

Previous topic - Next topic

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

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Oldiesmann

#2
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:

@ini_set(arg.separator_input, ';&');
Michael Eshom
Christian Metal Fans

Advertisement: