Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Jan 2011
    Posts
    69
    Plugin Contributions
    0

    help question Unnecessary IIS redirects

    http://www.glimm_erdog.com

    Put in the underscore above for safety.

    I have a bunch {2000+} unnecessary redirects. I think it has something to do with either an .htaccsess file or a configure.php file.

    The reason for thinking that is a lot of errors reference "cookie usage" and http -> https. I do have a SSL

    I have a 301 redirect going from http://glimm.. to http://www.glimm.

    Tried to figure it out, but could use some genius help. Thanks.

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Unnecessary redirects

    Although your SSL Cert is uses 'www.glim...' your Zen Cart 'includes/configure.php' for is not setup that way.

    Check both your config files to make sure 'www' is used in your Domain name.

    In your .htaccess file for the redirect it should look like this:

    RewriteEngine ON
    # Note: you only need the 'RewriteEngine ON' to be stated once
    # it is mentioned here in case it is not already in your .htaccess file

    ## adds www to Browser URL
    RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
    RewriteRule ^(.*) http://www.yourdomain.com/$1 [R=301,L]
    ### end adding www

    Put the code at the top of your .htaccess file, for easy reference.

    Also, always make sure to immediately test any changes to your .htaccess file. If something within it is incorrect your site will not be accessible. By verifying your work you can make sure things are working as you want and if they are not, quickly put things back the way they were.

  3. #3
    Join Date
    Jan 2011
    Posts
    69
    Plugin Contributions
    0

    Default Re: Unnecessary redirects

    Thanks. I still have an issue but this did drop the unnecessary redirects by 1/3.

    There are 6 instances of the address in the 2 configure.php files. All of them should be www.?

    Also, I only need to edit the 1 .htaccess file?

    Appreciate it!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Unnecessary redirects

    Quote Originally Posted by zcadqliv View Post
    I have a bunch {2000+} unnecessary redirects.
    Who's telling you that you have 2000+ "unnecessary" redirects?
    And what exactly constitutes "unnecessary" in your definition?
    .

    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.

  5. #5
    Join Date
    Jan 2011
    Posts
    69
    Plugin Contributions
    0

    Default Re: Unnecessary redirects

    I am using the MS IIS program and I believe another program flagged the same thing. I don't have my own definition of unnecessary. A lot of them list a link and a redirect to the "cookie usage" page and others have referenced http vs https.

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Unnecessary redirects

    Quote Originally Posted by zcadqliv View Post
    Thanks. I still have an issue but this did drop the unnecessary redirects by 1/3.

    There are 6 instances of the address in the 2 configure.php files. All of them should be www.?

    Also, I only need to edit the 1 .htaccess file?

    Appreciate it!
    Yes, all 6 and Yes, the main .htaccess file

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Unnecessary redirects

    Quote Originally Posted by zcadqliv View Post
    I am using the MS IIS program and I believe another program flagged the same thing. I don't have my own definition of unnecessary. A lot of them list a link and a redirect to the "cookie usage" page and others have referenced http vs https.
    Who are these visitors? Are they legitimate customers? Or are they robots scraping your site?
    .

    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.

  8. #8
    Join Date
    Jan 2011
    Posts
    69
    Plugin Contributions
    0

    Default Re: Unnecessary redirects

    Thanks for the info Rob.

    Doc -> I believe that the program works like a robot looking for errors. One separate error says the index.php has been referenced too many times and suggests a possible "infinite loop". My host had said to do a Wild Card redirect, but when I do I have trouble getting into the Admin. The site and SSL are working fine but I'm concerned about how the search engines could be handling this. I'm thinking my .htaccess is missing something to account for both the 301 move to www AND the https on the SSL. Maybe I don't know what I'm talking about, you guys know way more than I do.

    I think my Admin/Config/Sessions is set ok.

    Thanks.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Unnecessary redirects

    What version of Zen Cart? What addons? What version of IIS?
    .

    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.

  10. #10
    Join Date
    Jan 2011
    Posts
    69
    Plugin Contributions
    0

    Default Re: Unnecessary redirects

    1.3.9h
    I have Google Merchant Feeder and Multi Cross-sell.
    The IIS is 7.0 Extensions I believe. Its for Windows 7 and I just downloaded that version a month ago.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h My CKEditor creating unnecessary p tags
    By raj3396 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Jul 2012, 09:17 AM
  2. Unnecessary images being displayed
    By liizz in forum Setting Up Categories, Products, Attributes
    Replies: 17
    Last Post: 1 Feb 2011, 07:40 AM
  3. Unnecessary Paypal text
    By microbe in forum General Questions
    Replies: 13
    Last Post: 29 Feb 2008, 10:28 PM

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