Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changed Domain Name + Installed Folder - Can't Access Admin


rebelsheep

Recommended Posts

Hi,

I had a test site running at notebookrepair.rocks wanted to go live as notebookrepair.co.uk so changed the folder on the webspace from domains/notebookrepair.rocks to domains/notebookrepair.co.uk.

Pointed the domain name on the server to the domains/notebookrepair.co.uk folder.

Changed the configuration file for the database where OSCommerce is installed - changing any lines that referred to .rocks to .co.uk.

The site works fine...  apart from ADMIN.

I can't get in to admin at all - just a blank screen.

What do I need to reconfigure in OSCommerce so that I can get back in to admin (should be able to get in at notebookrepair.co.uk/admin).

Thank you.

Link to comment
Share on other sites

check your includes/configure.php.file  i used my as an example.. and this goes for the your admin/includes/configure.php

 

i hope this helps.

 

 

<?php
  define('HTTP_SERVER', 'https://herasonlinemarket.com');      -------1> make sure the s is after the https on both places..
  define('HTTPS_SERVER', 'https://herasonlinemarket.com');
  define('ENABLE_SSL', true);   --------------------------------->make sure your SSL is set to true.
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/shop/');   ---------------------------> what ever you called you catalo, my case it is shop, yours should be different,
  define('HTTPS_COOKIE_PATH', '/shop/');
  define('DIR_WS_HTTP_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');

  define('DIR_FS_CATALOG', '/home/herasonl/public_html/shop/');<---------------------->  i think this maybe the problem, you need the  information this maybe be different from where you had it before
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'yourdatabase user name');
  define('DB_SERVER_PASSWORD', 'dbpassword');
  define('DB_DATABASE', 'dasebasename');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
  define('CFG_TIME_ZONE', 'America/Los_Angeles');

 

Link to comment
Share on other sites

2 hours ago, rebelsheep said:

The site works fine...  apart from ADMIN.

I'm afraid your site is not working well as you say, you have SSL activated but your redirects are wrong. The customer is seeing 2 totaly diferent sites depending on if he uses https or www

https://www-your-site-co-uk/  is broken

your-site-co-uk/ works but no SSL

Fix you SSL and redirect.

 

 

Link to comment
Share on other sites

Thank you everyone, that really helped.

I needed to edit configure.php in admin too, as well as in the htaccess file as burt pointed out.

 

JCMagpie is everything ok with the http and https now?

My home page is http://notebookrepair.co.uk/index.php - the rest of the site seems to be under https://, so if I navigate to a product or go to the basket the address changes to https:// and says that site is secure.

Do you think that my home page should also be https to give customers more confidence?

Link to comment
Share on other sites

3 minutes ago, rebelsheep said:

JCMagpie is everything ok with the http and https now?

no it needs more work to make sure only SSL is served u to customers. Curently what you can still get is

image.png.b133769e9533b13f9b2d5c56725fe1c2.png

as you can see none SSL. Check your .htaccess to make sure you are redirecting to SSL, unless you wish to have none SSL?

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...