---
title: "Change OpenCart 1.5 URL &#8211; How To"
description: "This is a tutorial on how to change your OpenCart URL. There are various reasons for changing your website's URL, such as testing our website on your Temporary URL, or you may just want to use a..."
url: https://www.inmotionhosting.com/support/edu/opencart/change-opencart-url/
date: 2013-05-23
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["OpenCart"]
type: post
lang: en
---

# Change OpenCart 1.5 URL &#8211; How To

This is a tutorial on how to change your OpenCart URL. There are various reasons for changing your website’s URL, such as testing our website on your [Temporary URL](/support/website/using-your-temporary-url/), or you may just want to use a different domain name for your site.

We will walk you through editing and updating 2 .php files in order to accomplish this.

## Changing Your URL

1. Using [FTP](/support/website/ftp/getting-started-guide/) or [File Manager](/support/edu/cpanel/using-file-manager-in-cpanel/), navigate to the root of your OpenCart installation, and locate a file titled **config.php**.
2. [Edit](/support/website/how-to-edit-a-file/) the *config.php* file, and locate the lines that look like this: // HTTP define(‘HTTP_SERVER’, ‘https://example.com/’); // HTTPS define(‘HTTPS_SERVER’, ‘https://example.com/’);
3. Change the existing URL (I hilighted the part you need to update in red) to your new domain name, then save the modification.
4. Now, locate and edit the **config.php** file located in the: **/admin** folder. You will see several lines that look like this: // HTTP define(‘HTTP_SERVER’, ‘https://example.com/admin/’); define(‘HTTP_CATALOG’, ‘https://example.com/’); // HTTPS define(‘HTTPS_SERVER’, ‘https://example.com/admin/’); define(‘HTTPS_CATALOG’, ‘https://example.com/’);
5. Update the existing URL (I hilighted the part you need to update in red) with your new one, then save what you have done. Your OpenCart URL has now been changed in the config.php files, and your site will function on the new address.

Congratulations, now you know how to change your URL in OpenCart by modifying the config.php files!
