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:
You’ll find many lines in the two files that look like this:
Simply change them to your new URL, like so:
Remember to do it for ALL the lines that refer to your URL.