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

Creating a SharePoint blog post using Word 2010

Create your blog posts in Word 2010 and post to your SharePoint blog (or other blogs such as Blogger). It's really quite simple. Open Microsoft Word 2010. From the Start menu, Select NEW>Blog Post The first time you do this, you'll be asked to register your blog platform. Word provides several options. I selected Blogger (of course). Provide your account # and password: Then you'll be asked to provide Picture Options... provide your server location or choose None. (see this page from Microsoft for more details on the Picture Options: http://office.microsoft.com/en-us/word-help/help-with-blogging-in-word-HA010164021.aspx?ver=14&app=winword.exe#_Toc321212396 ) ) Type your blog post as normal, inserting pictures if desired and publish. This Microsoft Video shows you how: http://office.microsoft.com/en-us/sharepoint-server-help/video-use-word-2010-to-post-to-a-sharepoint-blog-VA101790488.aspx

This link no longer works, because it may have been moved or deleted error when following a site from a Mysite location

This link no longer works, because it may have been moved or deleted. You can try to find it and follow it in its new location. (via www.absolute-sharepoint.com ) I had a problem at a client who had SharePoint 2013 MySites and a couple of WebApplications. Users were able to follow sites and they appeared in their mysite as usual, however when they clicked on them, they had this error: This link no longer works…

A review of VisualSP for SharePoint 2013 - unsolicited

One of the things we wanted to do in our new SharePoint 2013 environment was create a more user friendly environment and increase adoption by giving users the ability to learn "how-tos" without the need of a training class or a guided tour by the SharePoint person (aka me).  My first thought when we began planning for the upgrade was that built-in help would be excellent, but would also be a monumental task to create.  Having used many of SharePoint-Videos.com videos for my own learning needs, I turned to their site for ideas. Enter VisualSP.  Obviously, I'm not the only person who desired in-context help for the end users. We purchased VisualSP for SharePoint 2013.  Once our environment was configured properly, installation was not difficult. The installation procedures were straight forward and easy to follow. I am not replicating that information here, but will hit the highlights.  For full details and screenshots, see the link above. Installation must...