PHP SESSIONS problem -
my php sessions when logged in not display links when type following url in browser example.com
display links when type www.example.com
how can fix problem if possible?
this because sessions 1 or other. do, allow users on either www.example.com or example.com . set add code .htaccess
# non-www redirect rewritecond %{http_host} !^example\.com$ rewriterule (.*) http://example.com/$1 [r=301,l]
this redirect people example.com if try , onto www.example.com
if have .co.uk domain may help
# non-www redirect rewritecond %{http_host} !^example\.co\.uk$ rewriterule (.*) http://example.co.uk/$1 [r=301,l]
there way via sessions on sub-domains. see this more info
hope helps!
Comments
Post a Comment