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’, ‘http://www.domain.com/pathtowordpress’);
define(‘WP_SITEURL’, ‘http://www.domain.com/pathtowordpress’);

(OF COURSE – SUBSTITUTE “www.domain.com/pathtowordpress” 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”.

DONE!

Related posts:

  1. Multiple WordPress installations on a single database
  2. Exporting and Importing WordPress Databse
  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. WordPress Perma Links Setting
  7. Word Press Error 404
  8. How to decode encrypted WordPress footers
  9. Change Role Names or Add new Roles in WordPress
  10. WordPress Plugins I love
  11. Offering More Subscription Options
  12. How To Remove Author Details from posts In WordPress Blog
  13. WordPress 3.0.1 Image Upload Error
  14. Blogs
  15. Privacy
  16. How to make money as a welder and market your skill
  17. Tri-Magnum – R.Q. Riley
  18. DIY
  19. Topics of Interest
  20. VTR “S”
  21. Firearms
  22. About
  23. Tips for using Google AdWords
  24. Sites
  25. Solar Power
  26. WinMerge – Compare Duplicate PC Files
  27. Tri-Magnum Project Car
  28. STOP SOPA and PIPA
  29. Sugru
  30. Developing iPhone Apps
Brad

Welcome to the official website of Brad Merritt.

2 Comments

  1. Cardio Kickboxing Workout said on August 30th, 2010:

    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?

  2. Anthony Hunter said on September 28th, 2010:

    I think this was a very nice post. Thanks for the great content. I will take this into consideration. Anthony Hunter
    Free Energy Solar Panels

Leave a Reply

You must be logged in to post a comment.