|
Posted by Whitefael on 05/15/07 20:34
On May 15, 10:14 am, harvey <harvey....@blueyonzders.com> wrote:
> In article <3fednelwTe4PENTbnZ2dnUVZ_rCsn...@comcast.com>,
> jstuck...@attglobal.net says...
>
>
> This is somewhat disturbing.
>
> Given that this happens - how do you prevent it causing a problem - IE
> how can you force this discrepancy to correct itself so the user session
> always remains safe?
On May 15, 10:14 am, harvey <harvey....@blueyonzders.com> wrote:
> In article <3fednelwTe4PENTbnZ2dnUVZ_rCsn...@comcast.com>,
> jstuck...@attglobal.net says...
>
> This is somewhat disturbing.
>
> Given that this happens - how do you prevent it causing a problem - IE
> how can you force this discrepancy to correct itself so the user session
> always remains safe?
One person on the Textpattern forum did recommend doing this (I'm
assuming this goes in the .htaccess file or httpd.conf file):
<IfModule mod_rewrite.c>
RewriteEngine on
# no www ------------------
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
</IfModule mod_rewrite.c>
The above automatically redirects people to the non-www version of any
given url.
I'd also like to see if Jerry's suggestion works.
Thanks again for the help.
Navigation:
[Reply to this message]
|