Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2010
    Location
    New South Wales, Australia
    Posts
    228
    Plugin Contributions
    0

    Default Removing redirect chain

    When I run Page Speed I get only one error below about redirect chains. It only happens with the current template. Is there a way to fix it?

    Code:
    Remove the following redirect chain, if possible:
    
        http://www.chainwheeljewellery.com.au/store/includes/templates/responsive/css/stylesheet_zen_lightbox.css
        http://chainwheeljewellery.com.au/store/includes/templates/responsive/css/stylesheet_zen_lightbox.css
    
    Remove the following redirect chain, if possible:
    
        http://www.chainwheeljewellery.com.au/store/includes/templates/responsive/images/logo.png
        http://chainwheeljewellery.com.au/store/includes/templates/responsive/images/logo.png
    
    Remove the following redirect chain, if possible:
    
        http://www.chainwheeljewellery.com.au/store/includes/templates/responsive/jscript/jscript_bootstrap.min.js
        http://chainwheeljewellery.com.au/store/includes/templates/responsive/jscript/jscript_bootstrap.min.js
    
    Remove the following redirect chain, if possible:
    
        http://www.chainwheeljewellery.com.au/store/includes/templates/responsive/jscript/jscript_imagehover.js
        http://chainwheeljewellery.com.au/store/includes/templates/responsive/jscript/jscript_imagehover.js

  2. #2
    Join Date
    Feb 2010
    Location
    New South Wales, Australia
    Posts
    228
    Plugin Contributions
    0

    Default Re: Removing redirect chain

    Don't worry, I fixed it. There were 2 options in the template's .htaccess page that I did not know about. I chose option 2 instead of 1.
    Code:
    <IfModule mod_rewrite.c>
       RewriteCond %{HTTPS} !=on
       RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
       RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
     </IfModule>

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Removing redirect chain

    I'm gonna go out on a limb and suggest that there's a really good reason why those are listed as minor low-priority items: because they're exactly that, very minor. The reason they're very minor is that those redirects will never be triggered in real-world practice.

    Your site has an .htaccess rewrite rule that redirects any chainwheeljewellery.com.au to www. chainwheeljewellery.com.au (without the space), and so the only reason the stated redirects would occur is if someone SPECIFICALLY tried to access, for example:

    http://chainwheeljewellery.com.au/store/includes/templates/responsive/images/logo.png
    which would redirect to
    http://www.chainwheeljewellery.com.au/store/includes/templates/responsive/images/logo.png
    because of your .htaccess rule.
    And that's fine.

    But since the very same thing happens with your home page or any other page/link someone would visit in your store, that means anybody who visits the non-www prefixed URL will FIRST be redirected to the www. prefixed URL. And THEN any javascript or css or images will all be loaded by requesting the www. prefixed URLs

    So, I suspect that the only reason for pagespeed giving you those suggestions is that you told pagespeed to check "your_domain.com" instead of "www.your_domain.com". I'm inclined to suspect that you wouldn't get those suggestions if you tested the www. version of your site directly.

    That said, I see no reason to change your redirects. It looks good now.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Removing redirect chain

    Oh. You must have made those changes before I got a chance to see it working incorrectly.

    Glad you got it sorted.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Windows 2012 server - 60 => SSL certificate problem: self signed certificate in chain
    By QuickBooksDev in forum Installing on a Windows Server
    Replies: 7
    Last Post: 21 Sep 2015, 03:43 PM
  2. Replies: 4
    Last Post: 28 Apr 2011, 07:07 PM
  3. A difficult one... Attribute chain product type.
    By fightthefourwalls in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 31 Mar 2009, 02:12 AM
  4. Chain Attributes
    By noisebug in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 24 Jan 2008, 12:42 AM

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