How to change Opencart URL
- Category : cPanel Software Management
- Posted on : Nov 19, 2021
- Views : 988
- By : HostSEO
A good domain name or URL means a lot to your OpenCart online store. In this tutorial you will find the steps how to change Opencart URL in an easy way. There are quite many reasons for changing your website's URL, such as testing your website on the temporary URL before going live, or you may just want to use a different domain name for your site.
You may want to change OpenCart URL from a subdomain to a root domain or from a subfolder to your root folder. No matter what reason you have to update OpenCart URL, you can do that following the instructions below.
NOTE: Before proceeding with any changes, make sure that you generate a full backup of your website. If you've created your site using Softaculous script installer, feel free to refer to this guide as well (step #4 â$“ Backup software).
Opencart CMS defines your store URL in two configuration files (config.php) located in root and admin folders of the Opencart installation separately. Follow these steps to change two OpenCart config.php files one by one.
Update Opencart URL in the root folder
1. Log into your cPanel account.
2. Open File Manager menu located in Files section:
3. Navigate to the root folder of the Opencart installation, right-click on config.php and used Code Edit option:
4. Open the file and edit its source code online. You will need to locate and edit the following lines:
5. Instead of the old URL address, enter the new one and hit the Save button. In our case, config.php file will look like this after the change:
Update OpenCart URL in the admin config.php
1. Now, locate and edit the config.php file located in the /admin folder inside the Opencart installation. You can use Code Editor for editing as well:
2. You will see several lines that look like this:
3. Replace all the outlined URLs with the new domain name you would like to set for the Opencart installation and save the changes. In our case, the code looks like this:
Your OpenCart URL has been changed in the config.php files for now, and your site will function under the new domain name.
NOTE: In case you are transferring the installation from a different cPanel account, you will need to update the path to the corresponding files in both config.php files as well.
That's it!
             Â
                     Need any help? Contact our HelpDesk
Categories
- cPanel Question 47
- cPanel Software Management 29
- cPanel Tutorials 13
- Development 29
- Domain 13
- General 19
- Linux Helpline (Easy Guide) 156
- Marketing 47
- MySQL Question 13
- News 2
- PHP Configuration 14
- SEO 4
- SEO 42
- Server Administration 84
- SSL Installation 54
- Tips and Tricks 24
- VPS 3
- Web Hosting 44
- Website Security 22
- WHM questions 13
- WordPress 148
Subscribe Now
10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!Archive Calendar
Sat | Sun | Mon | Tue | Wed | Thu | Fri |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Recent Articles
-
Posted on : Sep 17
-
Posted on : Sep 10
-
Posted on : Aug 04
-
Posted on : Apr 01
Tags
- ts
- myisam
- vpn
- sql
- process
- kill
- tweak
- server load
- attack
- ddos mitigation
- Knowledge
- layer 7
- ddos
- webmail
- DMARC
- Development
- nginx
- seo vpn
- Hosting Security
- wireguard
- innodb
- exim
- smtp relay
- smtp
- VPS Hosting
- cpulimit
- Plesk
- Comparison
- cpu
- encryption
- WHM
- xampp
- sysstat
- optimize
- cheap vpn
- php-fpm
- mariadb
- apache
- Small Business
- Error
- Networking
- VPS
- SSD Hosting
- Link Building
- centos
- DNS
- optimization
- ubuntu