In this tutorial we will walk you through changing your OpenCart store URL, which can be updated in the config.php file.

When you are using Opencart to manage your Website, there may be a time when you need to change your website's default URL. For example, you might want to test the site on your Temp URL before going live, or you may have changed your domain name.

You can access the admin section on any URL, but when you click a link in Opencart, it will attempt to resolve to the URL that is specific in the config.php file.

Changing Your OpenCart URL

  1. Using FTP or File Manager, navigate to the OpenCart config.php file, it is located in the root of your OpenCart installation.
  2. Edit the config.php file.
    Locate the lines that look like this:

    // HTTP
    define('HTTP_SERVER', '');
    define('HTTP_CATALOG', '');

    // HTTPS
    define('HTTPS_SERVER', '');
    define('HTTPS_CATALOG', '');

    Update the addresses to reflect yor new URL:

    // HTTP
    define('HTTP_SERVER', '');
    define('HTTP_CATALOG', '');

    // HTTPS
    define('HTTPS_SERVER', '');
    define('HTTPS_CATALOG', '');

    You will then be able to use OpenCart on your new domain.

Congratulations, now you know how to update your URL in OpenCart!

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?


n/a Points
2015-11-05 4:02 pm

we  need also for Seo Friendly Urls For my Website

but our Devlepors  not Doing this what Should I do ??

16,266 Points
2015-11-05 5:21 pm
Hello Juned,

We do have an article on how to set up SEO Friendly URLs in OpenCart 1.5 that may be helpful. Other helpful information is also found via the Support Center search, so always check there first.

We do not currently have any information for OpenCart 2.x, however.

Kindest Regards,
Scott M

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.