Skip to content

How to Remove WP_SITEURL

Creating a full backup of your site’s files and database before proceeding is recommended.

1. Install & Activate WP File Manager

  • In your WordPress admin sidebar, go to Plugins ➔ Add New
  • Search for WP File Manager
  • Click Install Now, then Activate

2. Open the File Manager

In the admin sidebar, click WP File Manager to launch the file browser.

3. Locate wp-config.php

  • In the left‑hand tree, expand your site’s root folder (e.g. /public_html or /)
  • Find the wp-config.php file, right-click on it and choose Code Editor.

4. Find the WP_SITEURL Definition

  • Press Ctrl + F (Windows) or ⌘ + F (Mac) and search for

    php
    
    define( 'WP_SITEURL', 'https://example.com' );

5. Remove or Comment Out the Line

  • To remove
    • Highlight and delete the entire define statement
  • To comment out
    • Wrap it in PHP comments

      php
      
      //define( 'WP_SITEURL', 'https://example.com' );

6. Save Your Changes

  • Click the Save & Close button on the bottom right side of the pop-up editor.