The old versions of the home and site url are likely in the database somewhere.
Add two lines to your config.php file to override them as needed:
define('WP_HOME', 'http://example.com');
define('WP_SITEURL', 'http://example.com');
If you visit Settings / General and save the settings, they should get stored to their new value in the database. You should then be able to remove them. (Alternatively, you can skip that part and just keep them around: they won’t hurt.)
Related Posts:
- After moving wordpress some files still point to old directory
- Moving WordPress from live to local server
- I moved my WordPress site to the main directory and now I can’t access my admin
- Transferring from “Populate” CMS to WordPress
- What is the “Quick and Dirty” way to transfer WordPress installation?
- Doubts about how to migrate WordPress from local to online server using Search and Replace Tool script
- How to completely remove Python from a Windows machine?
- [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
- How to migrate subsite from dev multisite to production multisite
- Populate content on install
- Automatically enable custom theme, plugins and default content on installation?
- Are there any downsides to installing WordPress on Windows versus Linux?
- Create a custom WP install with plugins, theme etc already installed?
- How do I install two versions of WordPress on 1 server?
- How to Check the Directory Where WordPress is Installed?
- URL to download latest version of WP for other languages than English
- Custom WordPress Installation
- Shortest possible shell script to install WordPress on Nginx server?
- Does WordPress Import/Export tool actually exports media (images) as well?
- Can WordPress be installed at the root level, if a homepage called index.php already exists?
- Install wordpress in backend with Existing html website alive
- Moving to a new domain in the same server
- Issue converting single site to multi-site – blogs.dir folder not created
- When WordPress Does Not Provide an .htaccess File for New Multisite Sites because of CPanel Fantastico Auto-Installer?
- InfiniteWP installation fails – CONFIGURABLE MAX EXECUTION TIME DISABLED
- Multiple sites/domains on one database
- Install WordPress on new server or just copy old files?
- Sharing one WordPress installation between several “sites”?
- How to use if condition to change $table_prefix in wp_config.php
- Importing wordpress. xml file on new installation
- Export all content from wordpress
- Can my site use two different WordPress installs for different pages?
- Can I clone WP to another directory on the same server?
- Should I delete automatically-created files before installing WordPress?
- How to work locally on a copy of my wordpress?
- Change WordPress directory
- Use new domain name on previously installed files of wordpress
- No option to update WP in client’s backend
- wp-cli installation
- Page not found error shown while installing wordpress on IIS server
- Installing wordpress on Parallels plesk 9.5.3
- Multi site clarification
- How can I completely disable a WordPress installation?
- WordPress database error on (fresh) reinstall
- wp-cli fails on installing to subdomain
- Installing WordPress in a subdirectory
- how to return the wordpress path to the new site
- Version 3.04 or 3.5?
- WordPress installation from live site to localhost
- Basic installation questions
- Can I install a WordPress site locally from a tar.gz file?
- How can I deploy my InstantWP site to a live website?
- How to effectively handle the problem of installing WordPress locally for each new project?
- Local Installation: install.php offered to download instead of running
- Uncaught Error: Class ‘Redis’ errors on a site I’ve transfered to new hosting
- WSOD right after install
- WordPress System Requirement for Older Versions?
- Forbidden localhost error and error establishing database
- Image link issues after importing a database backup to my local web server
- EC2 WordPress install asks for connection info when auto-updating
- WordPress Skeleton installation
- Things to take care before installing wordpress Manual v/s Softaculous
- Moving from subdirectory and subdomain -> root
- Creating a sub folder inside a root installation?
- Why is WordPress’ installer “phoning home” during the install script?
- Powering only a subfolder with WordPress on a LAMP stack with an nginx reverse proxy
- Site blocked by WebSense on fresh WP Install
- WordPress 3.1 Install Error
- Disable creation of default content during installation
- Should I use two single WordPress installations because of SEO?
- How to recreate a WordPress site
- How to install multiple wordpress site on localhost
- Install wordpress without affecting clickfunnels
- More than 5 time my Website show this issue
- wp-cli setting home and siteurl to site.tldtld (double TLD)
- Accidentally re-installed wordpress
- Reporting Broken Theme event though upload was success
- Installing WordPress to root directory with existing static site. Concerns?
- How to install WordPress on root domain and Php script on subdomain?
- First time installing WordPress. Cant Access
- 2 domains 1 WP instalation in Cpanel
- WordPress Dashboard visible but site is not after migration
- Upload a website on WAMP and modify it
- How to update WP-CLI on Windows via Composer?
- How to replace a wordpress installation in root directory with another in a subdirectory?
- db.php, is it a legit file [closed]
- Moving site made easier
- New WP installation due to language issues
- WordPress Installation
- Moving from one WP site to a new WP site incrementally
- Are two installations of WordPress on the same domain (no subdomains) ok?
- Can’t restore my wordpress site from zip back up file
- I can access to my wordpress page at work and via cellphone, but when I get home, I can’t access to the website
- Multiple independent wordpress installs – 1 dedicated server – individual dedicated domain for each install. What is the best way to achieve this?
- WordPress desktop app shows blank screen
- Getting an error when trying to migrate to DV server from Grid with Media Temple [closed]
- Is php-mysql required for wordpress?
- Stuck downloading and extracting WordPress onto Ubuntu 22 LAMP server
- Backend working but not front
- Installing wordpress into the same directory as existing static html website