site is 302 redirecting with zen id?
i have been checking my www redirect, i have set my preferred domain in google as the www version and i have also set in my htaccess a 301 redirect from non www to www, i have checked these and they are working fine, but when checking in online tools (quite a fw different ones just to confirm) i get a notice saying that on the www version i have a 302 temporary redirect to the same url but with the zen id included.
when i type it in this doesnt seem to actually show up to users but its is showing up in these checks, it seems my site is doing some kind of a loop?
here is the information i have found:
Code:
#1 Server Response: http://livvylou.co.uk
HTTP Status Code: HTTP/1.1 301 Moved Permanently
Date: Thu, 06 Jan 2011 14:09:38 GMT
Server: Apache
Location: http://www.livvylou.co.uk/
Content-Length: 234
Content-Type: text/html; charset=iso-8859-1
Redirect Target: http://www.livvylou.co.uk/
#2 Server Response: http://www.livvylou.co.uk/
HTTP Status Code: HTTP/1.1 200 OK
Date: Thu, 06 Jan 2011 14:09:38 GMT
Server: Apache
X-Powered-By: PHP/5.2.13
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
this is the www redirect code i am using as suggested by my host as other versions were not working
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.livvylou\.co.uk
RewriteRule (.*) http://www.livvylou.co.uk/$1 [R=301,L]
my admin>config>sessions settings
Code:
Cookie Domain True Info
Force Cookie Use False
Check SSL Session ID False
Check User Agent False
Check IP Address False
Prevent Spider Sessions True
Recreate Session True
IP to Host Conversion Status true
(ive made no changes here and this is just as was installed)
and this is the redirect check results
Code:
#1
Checked link: http://www.livvylou.co.uk
Type of redirect: 302 Moved Temporarily
Redirected to: http://www.livvylou.co.uk/?zenid=### (ive taken this out)
#2
Checked link: http://livvylou.co.uk/
Type of redirect: 301 Moved Permanently
Redirected to: http://www.livvylou.co.uk/
the second one is fine, i have set that up but i have no idea how or why the 302 is coming about, i have checked on my cpanel and i cant find anything set up to redirect, my template is heavily customised and using quite a few addons but i am not using any seourl rewrite modules or similar and cannnot see anything that would conflict with this. ive tried taking off the non www redirect and all that does is shos the zen id in the url, same issue
i would really appreciate any suggestions, thanks
Re: site is 302 redirecting with zen id?
It's not the zenids... It's the lack of default indexing... Try adding this.
Code:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php?\ HTTP/
RewriteRule ^(.*)index\.php?$ www.livvylou.co.uk/$1 [R=301,L]
Cheers,
Melanie
Re: site is 302 redirecting with zen id?
thnkyou for your reply, i added that and it continued to work by redirecting the non www to www version, but the 302 redirection is still present. im wondering if it may be trouble with my server itself?
Re: site is 302 redirecting with zen id?
Okay, .co.uk domains are tricky as they are really sub domains... try these
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain\.co.uk$
RewriteRule (.*) http://www.domain.co.uk/$1 [R=301,L]
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.co.uk$ [NC]
RewriteRule ^(.*)$ http://www.domain.co.uk/$1 [R=301,L]
Code:
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://www.domain.co.uk/$1 [R=301,L]
~Melanie
Re: site is 302 redirecting with zen id?
thankyou very much again, i have tried each of those but none of those remove the 302 redirect. as i said they all continue to redirect the non www version to the www version perfectly but when i am checking the redirect status of www.livvylou.co.uk (note -with www) thats when it chucks up the 302 redirect from www.livvylou.co.uk to http://www.livvylou.co.uk/?zenid=...
this is driving me nuts!!! i really do appreciate your help :)
Re: site is 302 redirecting with zen id?
Check it using Live Headers... I think the tools are pulling incorrectly.
Or try this one with GoogleBot as the user agent, no redirect
http://web-sniffer.net/
~Melanie
Re: site is 302 redirecting with zen id?
The google bot comes back HTTP/1.1 200 OK on both www and non www but with no agent it looks like its pulling the same information?
Code:
HTTP Request Header
Connect to 69.175.44.10 on port 80 ... ok
GET / HTTP/1.1[CRLF]
Host: www.livvylou.co.uk[CRLF]
Connection: close[CRLF]
Accept-Encoding: gzip[CRLF]
Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7[CRLF]
Cache-Control: no-cache[CRLF]
Accept-Language: de,en;q=0.7,en-us;q=0.3[CRLF]
Referer: http://web-sniffer.net/[CRLF]
[CRLF]
HTTP Response Header
Name Value Delim
Status: HTTP/1.1 302 Moved Temporarily
Date: Thu, 06 Jan 2011 19:06:15 GMT
Server: Apache
X-Powered-By: PHP/5.2.13
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: zenid=...; path=/; domain=www.livvylou.co.uk
Location: http://www.livvylou.co.uk/?zenid=...
Content-Length: 0
Connection: close
Content-Type: text/html
Re: site is 302 redirecting with zen id?
Under configuration >> sessions try setting the following
Cookie Domain True
Force Cookie Use True
~Melanie
Re: site is 302 redirecting with zen id?
brilliant! thats removed the 302 redirect from the www version perfectly although now it is showing both www and non www as direct links and the redirect from non to www is no longer working :S
although as i said the 302 redirect and zen id have gone! (getting there :D)
Re: site is 302 redirecting with zen id?
set your htaccess back to the original
~Melanie