Ebuka Val
  • Blogging
    • Affiliate Marketing
    • Artificial Intelligence
    • Blogging and Niche Websites
    • Monetization
    • WordPress
  • E-Commerce
    • Amazon FBA
    • Dropshipping
  • Make Money
    • Make Money Online
    • Self Publishing
    • Sidehustles
    • Start A Business
  • Social Media
    • Facebook
    • Instagram
    • Pinterest
    • TikTok
    • YouTube
  • Free ToolsNew
    • YouTube Tools
      • YouTube Title Generator
      • YouTube Tag Extractor
      • YouTube Tag Generator
      • YouTube Description Generator
      • YouTube Earnings Calculator
    • Website Management Tools
      • AdSense Revenue Calculator
      • Keyword Suggestion Tool
      • Robots.TXT Generator
      • Meta Tag Generator
      • Hosting Checker
      • WordPress Theme Detector
    • Text Analysis
      • Article Rewriter
      • URL Rewriter
Notification Show More
Latest News
Best AI Story Generators for content creation
5 Best AI Story Generator Tools for Content Creation: Ranked and Reviewed
Artificial Intelligence
adnow vs adsense
NEW! AdNow vs AdSense: Detailed Comparison for Publishers
Monetization
Best About Us Page Generators
9 Of the Best About Us Page Generators using AI (2023 Review)
Artificial Intelligence
How to Install WordPress Using CPanel
How to Install WordPress Using cPanel with & without Softaculous (2023 Guide)
WordPress
Tips to Secure and protect Your WordPress Website
10 Tips to Secure and Protect your WordPress Website in 2023
WordPress
Aa
Aa
Ebuka Val
Search
  • Blogging
    • Affiliate Marketing
    • Artificial Intelligence
    • Blogging and Niche Websites
    • Monetization
    • WordPress
  • E-Commerce
    • Amazon FBA
    • Dropshipping
  • Make Money
    • Make Money Online
    • Self Publishing
    • Sidehustles
    • Start A Business
  • Social Media
    • Facebook
    • Instagram
    • Pinterest
    • TikTok
    • YouTube
  • Free ToolsNew
    • YouTube Tools
    • Website Management Tools
    • Text Analysis
Have an existing account? Sign In
  • About Us
  • Blog
  • Contact Us
  • Terms & Conditions
Learn From a Bunch of Tutorials available for Free.
We may receive a commission for purchases made through links in this post. However, this does not impact our reviews and comparisons.
WordPress

How to Change your WordPress Site’s URL in 4 Easy Steps

Ebuka Val
Last updated: 2022/09/18 at 3:10 AM
Ebuka Val Published September 18, 2022
Share
5 Min Read
How to Change your WordPress URLs easily
How to Change your WordPress URLs easily
SHARE

Your WordPress URL references your site on the web and the location of your site’s files and admin screens. There are certain conditions in which a user may want to change his or her WordPress URL.

It may be as a result of wanting to change from a domain to another sub-domain, updating from www to a non-www. It may also be a result of moving files around or migrating from HTTP:// to HTTPS://.

There are some possible ways a user can use to change his or her URL. This article is mainly to give guidelines on how to achieve the desired results.

A user who decides to change their WordPress URL can do so using the following methods

How to Change WordPress URL via Admin Dashboard.

This is the most common method to use in changing WordPress URLs. To do this click on “settings ” from the dashboard menu and then click on “General” to access the general setting screen.

Once on the screen, you are to update the WordPress address (URL) and your site’s address (URL). The WordPress address shows the address of your site while the site’s address shows the address of your WordPress core files.

Changing wordpress url via admin dashboard
Changing wordpress url via admin dashboard

You are to ensure that both addresses match together or else you want to assign a specific directory to WordPress.

Once you have clicked on “save changes” 

It is important to note that the WordPress dashboard will now be accessible via the new WordPress URL.

If you have accidentally input a wrong address(URL) you can rectify the mistake by overriding the settings in the admin by editing the wp-config PHP file.

Changing WordPress URL via the wp-config.php file

This is the second most common method of changing WordPress URL. It is important to note that the values in your wp-config.php file override the settings on your WordPress admin screens.

The wp-config.php file is located in the root directory of your WordPress site and can be accessed via FTP, SSH, or WP-CLI. If the fields are not editable then it is likely because they are hard coded in the file.

To change your URL, simply add these two lines of shortcodes somewhere above the lines that tell you to stop editing. The shortcodes are:

define('WP _Home; 'http://yoursiteurl.com');
define('WP_SITEURL; 'http://yoursiteurl.com');

Save your wp-config file and close it. Once you log in to the general settings menu on the dashboard you will find out that these two fields (WordPress address and site address) have been graded out. You can only edit them by removing those two lines from your wp-config file.

Changing WordPress URL Directly In the Database

The method requires the use of “PHP My Admin” which is accessible from your cPanel. This method is seen as a last resort as it requires a high level of professionalism because If in the case you encounter a problem in doing so, it may break your site.

If you are not comfortable with this method you can contact your developer for help and make sure your site is backed up before commencing.

While on the PHP MyAdmin page, click on the database which is on the left-hand side of the screen. Then scroll down and click on the wp options table.

Then look out for the site URL and home field and double click to be able to edit it. Input the new URL for your WordPress site and your changes will be automatically saved.

Changing WordPress URL using WP-CLI

This is another method of changing URL. To make use of this method you will need SSH access to your site which is provided by certain WordPress Hosting Companies like Kinsta.

To do this, you have to input these command lines:

wp option update home 'http://yoursiteurl.com'
wp option update siteurl 'http://yoursiteurl.com' 

Final Thoughts

I hope that after reading and going thorugh this article, you were able to understand the topic and able to changer your WordPress URLs easily.

Since you were interested in this article, I figured you might be interested in this one too on How to Change Domain Name in WordPress, make sure to read it.

If you have any questions on how to change your wordpress urls, feel free to ask me in the comments section.

Share this Article
Facebook Twitter Pinterest Reddit
Posted by Ebuka Val
Follow:
Hello! My name is Ebuka Val and I am a freelance SEO expert and writer. With years of experience in the industry, I have honed my skills in helping websites rank higher on search engines through effective search engine optimization techniques. In addition to my SEO work, I am also a writer and have written extensively on various topics related to blogging, affiliate marketing, and making money online. My passion for these topics has led me to create my own website, ebukaval.com, where I share my insights and strategies with my readers. I am constantly learning and expanding my knowledge in the digital marketing space, and I am always on the lookout for new opportunities to help businesses and individuals achieve their online goals. When I'm not working, I enjoy spending time with my family and exploring new hobbies. Thank you for taking the time to read about me, and feel free to contact me if you have any questions or would like to collaborate on a project.
Leave a review

Leave a review Cancel reply

Your email address will not be published. Required fields are marked *

Please select a rating!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

You Might Also Like

How to Install WordPress Using CPanel

How to Install WordPress Using cPanel with & without Softaculous (2023 Guide)

January 16, 2023
Tips to Secure and protect Your WordPress Website

10 Tips to Secure and Protect your WordPress Website in 2023

January 16, 2023
How to Upload and Install WordPress Plugins

How to Upload & Install a WordPress Plugin for Beginners

January 5, 2023
How to Insert Tables In WordPress Easily

How to Insert a Table in WordPress without Plugins

January 5, 2023
Newsletter Subscription

Subscribe to our newsletter to get our newest articles instantly!

Ebuka Val
Follow US

© 2023 www.ebukaval.com - All Rights Reserved.

  • About Us
  • Blog
  • Contact Us
  • Terms & Conditions
mailchimp email
Join Us!

Subscribe to our newsletter and be the first to know about the latest tips, tricks, and trends in blogging, affiliate marketing, artificial intelligence, YouTube, and making money online. And also get Free Guides!

Zero spam, Unsubscribe at any time.
Welcome Back!

Sign in to your account

Lost your password?