Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2.3.4 Bootstrap admin - too many redirects


tightwad

Recommended Posts

I installed the Bootstrap 2.3.4 version on 8.23.18 and got everything working, including configuring SSL.  In the last week something has changed (possibly with my web host, although they deny it) and now my Admin site is unavailable.  I get "too many redirects" from Chrome and Firefox, I think I have somehow gotten in a loop.  The Web Host help desk tried to help but was unable to....they did modify 2 files and I had to try and undo their silly changes.

.htaccess code in Admin, intended to rewrite to www and https:

Quote

 

# SSL enforce 8.23.18
#RewriteEngine On

#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

#RewriteCond %{HTTPS} on
#RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

 

the admin config file:

Quote

 

<?php
  define('HTTP_SERVER', 'https://www.wiremybike.com');
  define('HTTPS_SERVER', 'https://www.wiremybike.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/admin');
  define('HTTPS_COOKIE_PATH', '/admin');
  define('HTTP_CATALOG_SERVER', 'https://www.wiremybike.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.wiremybike.com');
  define('ENABLE_SSL_CATALOG', 'false');
  define('DIR_FS_DOCUMENT_ROOT', '/home/users/web/b1329/sl.wiremybi/public_html/');
  define('DIR_WS_ADMIN', '/admin/');
  define('DIR_WS_HTTPS_ADMIN', '/admin/');
  define('DIR_FS_ADMIN', '/home/users/web/b1329/sl.wiremybi/public_html/admin/');
  define('DIR_WS_CATALOG', '');
  define('DIR_WS_HTTPS_CATALOG', '');
  define('DIR_FS_CATALOG', '/home/users/web/b1329/sl.wiremybi/public_html/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

  define('DB_SERVER', 'xxxxx');
  define('DB_SERVER_USERNAME', 'xxxxx');
  define('DB_SERVER_PASSWORD', 'xxxxx');
  define('DB_DATABASE', 'xxxxx');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
  define('CFG_TIME_ZONE', 'America/Chicago');
?>

 


I am not super familiar with the .htaccess changes, I followed suggestions made in similar threads to get it to work, but I don't know if the webhost made a change to that file.

 

Link to comment
Share on other sites

On 10/5/2018 at 3:26 PM, Hotclutch said:

that may be the reason for you redirects. you don't put that code in admin htaccess - it goes in the catalog side htaccess.

This code is also in the catalog level .htaccess file:

 

Quote

 

RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

 


 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...