How to change the domain name on wordpress to a new domain nameAA-00454How to Change Your WordPress Domain NameOverviewThis guide explains how to properly change your WordPress site's domain name to a new domain. Following these steps in the correct order is crucial to avoid website accessibility issues. ?? IMPORTANT: Order of OperationsYou must update WordPress BEFORE changing the domain in cPanel. If you change the main domain in cPanel before updating WordPress, your site will continue redirecting to the old domain name, making it inaccessible. Prerequisites
Accessing Your cPanelYou can access cPanel through any of these methods:
Need Support? Create a support ticket at: https://support.ifastnet.com/login.php Note: First-time users will need to register an account to create tickets. Method 1: Using phpMyAdmin (Database Method)Step 1: Access phpMyAdmin
Step 2: Select Your WordPress Database
wp_options (the prefix might be different, like wp123_options)Step 3: Edit Site URLs
wp_options tableoption_name values:
Step 4: Verify Changes
siteurl and home entries should now show your new domainMethod 2: Using wp-config.php (File Manager Method)Step 1: Access File Manager
public_html)Step 2: Edit wp-config.php
wp-config.php file/* That's all, stop editing! Happy publishing. */define('WP_HOME','https://yournewdomain.com');
define('WP_SITEURL','https://yournewdomain.com');
Replace Step 3: Save the File
After WordPress is UpdatedConfigure Your New Domain in cPanelYou have two options for setting up your new domain: Option 1: Add New Domain (Recommended)
public_html)This option allows both domains to work simultaneously during the transition period. Option 2: Change Main cPanel Domain (Optional)Important: Changing the main cPanel domain requires support assistance and is optional.
Note: Option 1 is typically sufficient for most users and allows for easier management. Test Your Website
https://yournewdomain.com/wp-adminTroubleshootingIf Your Site Still Redirects to the Old Domain:
If You Can't Access Your Admin Area:
Additional WordPress Settings:After the domain change, you may need to:
Summary
Following this order ensures your WordPress site will be accessible on the new domain without redirect issues. |