How to Change Absolute Links

If you have a need to change your absolute links in your WordPress Blog or site then keep reading! There are many reasons that you may need to change your absolute links – for example:

1) You do not have access to your database
2) You have access to your database, but you are not familiar with using phpMyAdmin to make changes
3) You installed your WordPress blog on a server with another website and you want to migrate your WordPress blog as the main site instance
4) You moved to a new hosting provider or changed your site URL
5) Your site is just messed up now due to plugins

So how does this work? Well in my case, I had a client that had a site without database access. We were able to set it up and install WordPress, but there were no tools available for the customer to access the database. WordPress stores the site URL information in the database as opposed to the config file, so we were stuck with a site that we could not log into, and which also re-directed to an error 404.

So we had to figure out another way to change the URL string, get access and get this site back up and running without using the databse – here is how you do it:

1. FTP into your site server so that you can see all of the files (I am assuming that you can still FTP in and can see all of your site files)

2. Open the wp-config.php file in your WordPress directory into your favorite editor – like Dreamweaver, etc.

3. Scroll down under the database information you entered – and find the string of information that starts with “Defne”. The code starts at about line 45 in an editor.

4. Line 45 in your editor while in the wp-config.php file should say something like this:
define(‘AUTH_KEY’, ‘put your unique phrase here’);

Above that line you are going to add two more lines of code that are also define statements. This is what I want you to write:

define(‘WP_HOME’, ‘’);
define(‘WP_SITEURL’, ‘’);

(OF COURSE – SUBSTITUTE “” with your actual domain and folder that has WordPress.

5. Now save this as the new wp-config.php file and upload it to your server via FTP. Refresh everything.

6. Type in the URL of your site you just saved – you should be able to see the site, and you should also be able to log into the admin tools now.

7. In the dashboard, open the Settings panel and change the “Blog address” to match the new “WordPress address”.


Related posts:

  1. Exporting and Importing WordPress Databse
  2. Multiple WordPress installations on a single database
  3. Install Multiple WordPress Installations Using a Single Database
  4. WordPress URL directory Change
  5. WordPress 1and1 Server 500 Internal Server Errors and NexGen Gallery
  6. Word Press Error 404
  7. WordPress Perma Links Setting
  8. Change Role Names or Add new Roles in WordPress
  9. How to decode encrypted WordPress footers
  10. WordPress Plugins I love
  11. WordPress 3.0.1 Image Upload Error
  12. How To Remove Author Details from posts In WordPress Blog
  13. Offering More Subscription Options
  14. Blogs
  15. STOP SOPA and PIPA
  16. Private: Privacy
  17. Photography


  1. Just wanted to say that you’ve some awesome content on your weblog. If it’s OK I would like to use some of the information you supplied on my web site. If I link back to your website would it be OK to do so?

Leave a Reply