Results 1 to 8 of 8
  1. #1

    Default Help with .htacess and configure files to stop SSL redirect loop

    Hi, I have searched and searched this forum and faqs and google, etc.. and I cannot seem to get the SSL issued ironed out. I have called my host and they claim all is well.

    Store: www.charlestonbatcompany.net/cbcstore

    zencart 1.38a hosted at 1n1 on linux server

    Originally installed without SSL then had that installed, it is supposed to be a dedicated SSL.

    The host had me upload a .htaccess file which contained:

    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^(.*)$ https://charlestonbatcompany.net/$1 [R]

    So I changed my admin/includes configure file to:

    define('HTTP_SERVER', 'http://www.charlestonbatcompany.net');
    define('HTTPS_SERVER', 'https://charlestonbatcompany.net');
    define('HTTP_CATALOG_SERVER', 'http://www.charlestonbatcompany.net');
    define('HTTPS_CATALOG_SERVER', 'https://charlestonbatcompany.net');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'false');

    and my includes configure file to:

    define('HTTP_SERVER', 'http://www.charlestonbatcompany.net');
    define('HTTPS_SERVER', 'https://charlestonbatcompany.net');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');

    Which from what I understood should handle the redirect issue.

    But when you attempt to login to the store, or checkout, or access the admin section, a redirect error is displayed.

    Please tell me what I am doing wrong!

    Is it something my host needs to do?

    PS: Great software by the way, and yes I bought the book!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Help with .htacess and configure files

    Quote Originally Posted by behrtek View Post
    The host had me upload a .htaccess file which contained:

    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^(.*)$ https://charlestonbatcompany.net/$1 [R]
    Did they say WHY they suggested that? That doesn't seem to make sense.



    Quote Originally Posted by behrtek View Post
    So I changed my admin/includes configure file to:

    define('HTTP_SERVER', 'http://www.charlestonbatcompany.net');
    define('HTTPS_SERVER', 'https://charlestonbatcompany.net');
    define('HTTP_CATALOG_SERVER', 'http://www.charlestonbatcompany.net');
    define('HTTPS_CATALOG_SERVER', 'https://charlestonbatcompany.net');
    If your SSL cert is registered to the domain name without the "www." prefix, then it would make sense to remove the "www." from the non-SSL URLs in your configure.php files too.
    .

    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.

  3. #3
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Help with .htacess and configure files to stop SSL redirect loop

    lose that junk from the htaccess file
    just comment it out and see if it works
    Last edited by Merlinpa1969; 5 Mar 2009 at 06:03 AM. Reason: typo
    Zen cart PCI compliant Hosting

  4. #4

    Default Re: Help with .htacess and configure files to stop SSL redirect loop

    Originally when they installed the SSL, if I typed in the https:// address I would get an invalid certificate error.

    So I called them and adding the .htaccess file that I posted above is what they recommended.

    Ok I now have removed the file all together but I still get a redirect loop error in firefox. IE7 just sits there.

    Any other ideas?

    Thanks for the responses by the way!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Help with .htacess and configure files to stop SSL redirect loop

    And what's your hosting company saying about this?
    .

    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.

  6. #6

    Default Re: Help with .htacess and configure files to stop SSL redirect loop

    They aren't being very helpful, I think there is a language issue!

    I have learned my lessons with this host, I will not be getting anymore accounts with them.

    I am at a loss at the moment.

  7. #7

    Default Re: Help with .htacess and configure files to stop SSL redirect loop

    OK, for some reason Fireftp was not showing me the .htaccess file in the root folder on my host. Don't know if that is something they are blocking or what.
    Either way I logged into the host control panel and deleted the .htaccess file that was not showing up in my ftp software.

    It appears to work correctly now.

    Thanks again for everyone's help.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Help with .htacess and configure files to stop SSL redirect loop

    Many FTP programs automatically hide any files that start with a "." because those are technically "hidden" files. Usually there's a preferences setting you can change to have them show.
    .

    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. Search Redirect Loop with Simple SEO URLs
    By hey_you in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Jan 2012, 07:13 AM
  2. Please help with an infinite redirect loop using SSU 3.5.8
    By linnx in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 May 2010, 02:45 PM
  3. Redirect Loop Error with foreign currencies
    By miklia in forum General Questions
    Replies: 1
    Last Post: 6 May 2010, 08:29 PM
  4. HELP!!! Redirect Loop at Checkout if no shipping found and FEC/COWOA installed
    By limelites in forum All Other Contributions/Addons
    Replies: 26
    Last Post: 21 Nov 2009, 12:08 AM
  5. Email with Link to a product : URL redirect, rewrite, .htacess?
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 May 2007, 10:50 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