You can change the area name for your WordPress site any time you like, yet there are a couple of significant settings that must be made to do the switch.
Make a point to deliberately follow the means beneath to guarantee it’s done appropriately.
Several reasons to change the URL
Coming up next are directions for moving a WordPress establishment from one URL to an alternate one. There are various cases for moving a WordPress introduce, as demonstrated as follows.
Case 1: Moving from a subdirectory
The primary case is the point at which a WordPress site moves from a sub-registry to its parent area. For instance:
Move from http://example.com/blog
to
If you’ve just moved your area to another URL, you can’t sign in since WordPress is arranged to utilize the old URL.
Case 2: Adding or eliminating www
Another motivation to refresh your URLs is if you have to include or eliminate www from your space. For instance, in case you’re utilizing Cloudflare with DreamHost, you have to add www to your area. So if it was already example.com, you would transform it to www.example.com.
After modifying the URL, you may likewise observe a program divert blunder when seeing your site. It might state “Too many sidetracks” or “The page isn’t diverting appropriately”.
Case 3: Adding ‘https’ to the URL
In case you’re utilizing an SSL testament, the initial segment of the URL changes from ‘HTTP’ to ‘HTTPS’. If you’ve just rolled out this improvement, you can’t sign in since WordPress is arranged to utilize the old URL.
Case 4: Moving to another space
The last case is the point at which a WordPress site moves from one completely facilitated space to an alternate one. For instance:
Move from http://example.com/blog
to
If this choice applies to your site, see the accompanying article for full directions on moving a WordPress introduce to an alternate space
Different ways to change the WordPress URL
Choice 1: Changing the HOME and SITE URL utilizing phpMyAdmin
If you’ve just made any of the progressions above, you’re not ready to sign in to your dashboard. You can rather utilize phpMyAdmin to refresh the HOME and SITE URLs.
Visit the accompanying article for more data on the most proficient method to sign in to phpMyAdmin:
Finding your phpMyAdmin login accreditations
- Open phpMyAdmin.
- Snap your information base in the left sheet. A few tables show up underneath it. Snap-on your wp_options table.
- Find the ‘siteurl’ and ‘home’ lines. Snap the pencil symbol close to each to alter.
- Snap the pencil symbol close to each to alter.
- Change the URL by composing in another one.
- Snap the Go button to spare the settings. Do this for both the ‘siteurl’ and ‘home’ alternatives.
You should now have the option to sign in to your site at example.com/wp-login.php.
Even though this gives you admittance to your site, any previous URLs in your information base are as yet utilizing the old URL. You should now utilize a module to refresh all URLs in your information base to the new URL.
Choice 2: Changing the URLs in your wp-config.php record
You can likewise change the URLs in your wp-config.php record. This is somewhat simpler than altering your information base and will give you quick admittance to your site.
- Sign in to your site utilizing FTP or SSH.
- In your WordPress registry, alter the document named ‘wp-config.php’.
- Making and altering records through FTP
- Making and altering a record through SSH
- In that record, including the accompanying lines simply above
- If you visit your site now, you’ll see you can sign in.
Even though this gives you prompt admittance to your site, the information base is as yet not arranged to utilize the right HOME and SITE URL. You should now utilize a module to refresh all URLs in your information base to the new URL.
Verifying the new HOME and SITE URL
If you utilized choices #1 over, the HOME and SITE URLs were refreshed in the information base. You can affirm your site is presently utilizing the right URLs in your dashboard.
- Sign in to your WordPress Dashboard.
- Explore over to Settings > General.
Here you’ll see the HOME and SITE URL your WordPress site is designed to utilize.
Share Your Comments & Feedback