Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default 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

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,200
    Plugin Contributions
    63

    Default 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
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default 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?

  4. #4
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,200
    Plugin Contributions
    63

    Default 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
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  5. #5
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default 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 :)

  6. #6
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,200
    Plugin Contributions
    63

    Default 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
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  7. #7
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default 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

  8. #8
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,200
    Plugin Contributions
    63

    Default Re: site is 302 redirecting with zen id?

    Under configuration >> sessions try setting the following

    Cookie Domain True
    Force Cookie Use True

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  9. #9
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default 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 )

  10. #10
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,200
    Plugin Contributions
    63

    Default Re: site is 302 redirecting with zen id?

    set your htaccess back to the original

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. why is my site redirecting with a 302?
    By colin0502 in forum General Questions
    Replies: 10
    Last Post: 10 Oct 2009, 10:10 PM
  2. 302 redirect with languages vs search engines
    By xordox in forum Bug Reports
    Replies: 1
    Last Post: 1 Nov 2008, 01:34 PM
  3. 302 Redirect error with worldpay mod
    By crazycucumber in forum General Questions
    Replies: 1
    Last Post: 23 May 2007, 01:27 PM
  4. Using Zen modules with non Zen site?
    By RPR2020 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Jun 2006, 08:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR