Skip to main content

WordPress URL was changed... how to fix it.

A user with admin permissions changed the URL of our WordPress site. This, of course, caused the site to be unreachable.

After major frustration, and frantic searching, I asked friends on the SharePoint-Community.net for help. Was referred to this URL:http://codex.wordpress.org/Changing_The_Site_URL

What worked for me was a two step process:

Since I had just upgraded the WordPress site the day before to the newest version (at the time 3.6.1), I had backup files on an external hard drive.

I tried first doing a hack on the Functions.php file in the theme. That gave us a login prompt but nothing else. I tried editing the wp-config.php file, but at first it didn't seem to work. So I went ahead and rolled back the files from the day before.

Then I tried one more time with wp-config.php as follows (from the codex.wordpress.org site above):

Edit wp-config.php
It is possible to set the site URL manually in the wp-config.php file.

Add these two lines to your wp-config.php, where "example.com" is the correct location of your site.

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
This is not necessarily the best fix, it's just hardcoding the values into the site itself. You won't be able to edit them on the General settings page anymore when using this method.


What I discovered with all of this is that it takes a few minutes for the updates/changes to appear and a couple of log in attempts.

The site is working again.

Special thanks to Danny Hebert for his assistance!


Comments

Popular posts from this blog

Make your SharePoint Libraries Favorites in Windows Explorer for Easier Saving

You're working furiously on a document with only a few minutes left until the doors close for the day (or your laptop battery dies, or some other emergency happens). You need to save the document to SharePoint, but you can't remember where the document library is in which you need to save the document.  If you make your frequently used Document Libraries Favorites in Windows Explorer.  That won’t be a problem again! Here's how to make it easier to save your documents to your SharePoint library: Create a Favorite in Windows Explorer.  Not in your browser (Internet Explorer, Chrome, Firefox, etc.). Let me show you what I mean: Figure 1: Windows Explorer Favorites So how did I get this screen? And how did I put the Shared Documents folder in my Favorites? This blog post will answer those questions. How to Get to the Favorites in Windows Explorer: I’m using Windows 7, so if you’re running XP, Vista, or Win8, your screen may lo...
Creating and applying a Composed Look: 1. Download SharePoint Designer 2013 and SharePoint Color Palette Tool. 2. Create your theme using the SharePoint Color Palette Tool and save it as a .spcolor file. Suggest that you sort the Color Slot Grouping by UI Groups. 3. Open SharePoint Designer 2013. 4. Click Open Site. 5. Enter the URL of your SharePoint page (Master Page). 6. Click on All Files under Navigation. 7. Click on _catalogs. 8. Click on theme. 9. Click on 15. 10. Click Import Files. 11. Select your .spcolor file and click ok. You should now see your template file in the 15 directory. 12. Click All Files. 13. Click images. 14. Click Import Files. 15. Select the image you want for your background image and click ok. You should now see your image file in the image directory. 16. Now open the master page that you want to add the theme to in SharePoint 2013. 17. Click on the settings icon and select Site Settings. 18. Under Web Designer Galle...

InfoPath Would Not Submit a Form - Concatenate function yielded a title that was too long!

Had a user today who was experiencing issues submitting an InfoPath form.  The original set of error messages made me assume that SharePoint was not set as Local Intranet site (which it wasn't).  So I set SharePoint as the local intranet site,  updated the user's desktop icon shortcut (to use the https version of the site).  And thought, okay, problem solved.  Alas and alack, not so! The user entered a form went to submit it and got a different set of error messages. (Unfortunately I didn't think to screenshot the errors and send them to myself so I don't have the exact wording for any of the errors.)  The basic message the second time was InfoPath cannot submit the form.  I've seen variations of this error before, so I started looking at Compatibility View, and Add-ons.  Well, I found the user had IE10 which we recommend our users NOT install as there are known compatibility issues with IE10 and SharePoint 2007 as well as some of our other inte...