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 and you want to move it to now.

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




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

define(‘HTTP_SERVER’, ‘’);

Simply change them to your new URL, like so:

define(‘HTTP_SERVER’, ‘’);

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!


    • 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.


Leave a Reply