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:
(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”.
Related Posts via Categories
- Exporting and Importing WordPress Databse
- Multiple WordPress installations on a single database
- Install Multiple WordPress Installations Using a Single Database
- WordPress URL directory Change
- WordPress 1and1 Server 500 Internal Server Errors and NexGen Gallery
- Word Press Error 404
- WordPress Perma Links Setting
- Change Role Names or Add new Roles in WordPress
- How to decode encrypted WordPress footers
- WordPress Plugins I love
- WordPress 3.0.1 Image Upload Error
- How To Remove Author Details from posts In WordPress Blog
- Offering More Subscription Options
- STOP SOPA and PIPA
- Private: Privacy