Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cant access /admin getting ERR_TOO_MANY_REDIRECTS


pedro9933

Recommended Posts

I have deployed the new website from my machine to our servers and encountered multiple problems.

 

I have got it installed like this "public_html/bootstrap/"

 

But i didnt delete the old website from public_html cause some people in the company still needed to access pages of it so i created a redirect 301 in htaccess like this:

redirect 301 /index.php http://domain.net/bootstrap/index.php

and this for all non-www access to be converted to www access properly edited with domain


RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]

The Frontend works ok but i cant access my admin, every time i type domain/bootstrap/admin i get ERR_TOO_MANY_REDIRECTS.

 

My configure.php in includes and admin includes is like this:

define('HTTP_SERVER', 'http://www.domain.net/bootstrap');
  define('HTTPS_SERVER', 'http://www.domain.net/bootstrap');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('DIR_WS_HTTP_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

  define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
  define('DIR_FS_CATALOG', '/home/domain/public_html/bootstrap/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

and 

define('HTTP_SERVER', 'http://www.domain.net/bootstrap');
define('HTTPS_SERVER', 'http://www.domain.net/bootstrap');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/admin');
define('HTTPS_COOKIE_PATH', '/admin');
define('HTTP_CATALOG_SERVER', 'http://www.domain.net/');
define('HTTPS_CATALOG_SERVER', 'http://www.domain.net/');
define('ENABLE_SSL_CATALOG', 'false');
define('DIR_FS_DOCUMENT_ROOT', '/home/domain/public_html/bootstrap/');
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', '/home/domain/public_html/bootstrap/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', '/home/domain/public_html/bootstrap/');

What is wrong ?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...