Page 1 of 1
admin issue after changing domain name
Posted: Fri Apr 03, 2015 11:10 pm
by clizzio
Hello
I have searched the forums and found answers to how to change my domain name by going into both the config.php and admin/config.php files and changing the http & https . I have gone in and changed all the lines in both files to the new site name I want (someone originally created my store and named it "newsite"). But after I changed everything and open up the link for my opencart admin site, it brings up my web page instead.
I have tried for over a month now to get this to work...can anyone help me I am about to launch my new store but do not want the name "newsite"
PS...I am not well versed in "code language" so simple terms and instructions are best!!!
Thanks
Cheryl
Re: admin issue after changing domain name
Posted: Fri Apr 03, 2015 11:38 pm
by rph
Edit the config file and update HTTP_CATALOG to the new site.
Re: admin issue after changing domain name
Posted: Sat Apr 04, 2015 12:15 am
by clizzio
I did change all of those....
I want to change the name "newsite" to "gokartsandgokartparts"
I changed it to that name in all the lines in both the config.php file and the admin/config.php file
When I try to go to my open cart site admin page it takes me to my regular webpage and in the address it still shows the old name "newsite"
Re: admin issue after changing domain name
Posted: Sat Apr 04, 2015 1:14 am
by IP_CAM
Do you possibly have anything in your .htaccess file, redirecting the URL?
Below, Sample admin config:
make sure LINKS/PATHS direct to the correct Server URL/Server-Path.
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://www.bigmax.ch/shop/admin/');
define('HTTP_CATALOG', 'http://www.bigmax.ch/shop/');
define('HTTP_IMAGE', 'http://www.bigmax.ch/shop/image/');
// HTTPS
define('HTTPS_SERVER', 'http://www.bigmax.ch/shop/admin/');
define('HTTPS_CATALOG', 'http://www.bigmax.ch/shop/');
define('HTTPS_IMAGE', 'http://www.bigmax.ch/shop/image/');
// DIR
define('DIR_APPLICATION', '/home/jacob/server/www/bigmax/shop/admin/');
define('DIR_SYSTEM', '/home/jacob/server/www/bigmax/shop/system/');
define('DIR_DATABASE', '/home/jacob/server/www/bigmax/shop/system/database/');
define('DIR_LANGUAGE', '/home/jacob/server/www/bigmax/shop/admin/language/');
define('DIR_TEMPLATE', '/home/jacob/server/www/bigmax/shop/admin/view/template/');
define('DIR_CONFIG', '/home/jacob/server/www/bigmax/shop/system/config/');
define('DIR_IMAGE', '/home/jacob/server/www/bigmax/shop/image/');
define('DIR_CACHE', '/home/jacob/server/www/bigmax/shop/system/cache/');
define('DIR_DOWNLOAD', '/home/jacob/server/www/bigmax/shop/download/');
define('DIR_LOGS', '/home/jacob/server/www/bigmax/shop/system/logs/');
define('DIR_CATALOG', '/home/jacob/server/www/bigmax/shop/catalog/');
Good Luck
Ernie
Re: admin issue after changing domain name
Posted: Sat Apr 04, 2015 2:25 am
by rph
What version of OpenCart are you using? Are you using multistore? Does System > Settings display the correct store URL? Did you make sure to purge your /system/cache/* files?