How To Move OpenCart Folder (Change OpenCart’s Installed Location)

How To Move OpenCart (Change OpenCart's Installed Location)

Let’s assume that you’ve installed OpenCart at http://www.YourDomain.com/Shop/ and you want to move it to http://www.YourDomain.com/ now.

To make this change and move OpenCart from folder to folder, you’ll need to edit the following two files:

http://www.domain/Shop/config.php

and

http://www.domain/Shop/admin/config.php

You’ll find many lines in the two files that look like this:

define(‘HTTP_SERVER’, ‘http://www.YourDomain.com/shop/’);

Simply change them to your new URL, like so:

define(‘HTTP_SERVER’, ‘http://www.YourDomain.com/’);

Remember to do it for ALL the lines that refer to your URL.

, , , ,

About Site Fixit!

Sam is a professional web designer and web developer. He has over 15 years of experience with web-related technologies, and loves making things work.

View all posts by Site Fixit!

2 Responses to “How To Move OpenCart Folder (Change OpenCart’s Installed Location)”

  1. Will Says:

    My Opencart website got hacked can you please help me fix it! with the right code to place in the htaccess file – or any info you have to help so this wont happen… Thanx Mate!

    Reply

    • Site Fixit! Says:

      Sorry, I can’t do this without actually diving into your code and attacked files. Your best bet will be to get your web host to restore your site to a previously working backup.

      Reply

Leave a Reply