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 via Categories
Related posts:
- Multiple WordPress installations on a single database
- Exporting and Importing WordPress Databse
- Install Multiple WordPress Installations Using a Single Database
- WordPress URL directory Change
- WordPress 1and1 Server 500 Internal Server Errors and NexGen Gallery
- WordPress Perma Links Setting
- Word Press Error 404
- How to decode encrypted WordPress footers
- Change Role Names or Add new Roles in WordPress
- WordPress Plugins I love
- Offering More Subscription Options
- How To Remove Author Details from posts In WordPress Blog
- WordPress 3.0.1 Image Upload Error
- Blogs
- Privacy
- How to make money as a welder and market your skill
- Tri-Magnum – R.Q. Riley
- DIY
- Topics of Interest
- VTR “S”
- Firearms
- About
- Tips for using Google AdWords
- Sites
- Solar Power
- WinMerge – Compare Duplicate PC Files
- Tri-Magnum Project Car
- STOP SOPA and PIPA
- Sugru
- Developing iPhone Apps










2 Comments
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?
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