Search the site:
RSS Feed
Advertisements
Website Hosting
Advertisements
Recent Posts
- How Secure is Your AdWords Account?
- BBC iPlayer Coming To A Wii Near You
- The World’s 50 Most Powerful Blogs?
- Upgrading Wordpress to the Latest Version
- Upgrade to Wordpress 2.5
- Mind-Controlled Gaming Headset Unveiled
- Microhoo: Sergey Brin is Annoyed, and Unnerved
- v7n.com Webmaster Community Website Up For Sale
- Are Gmail’s Anti Spam Filters Leaking?
- Which Photographs Are Hoaxes?
- Runaway Husband Spotted in Movie
- BBFC Ready to Tackle Games Classification
- The Best Films That Never Won a Best Picture Oscar
- doubleTwist desktop has launched
- .net Magazine Interview with Peter Sunde of The Pirate Bay
Archives
- April 2008 (5)
- February 2008 (18)
- January 2008 (10)
- November 2007 (1)
- October 2007 (6)
- September 2007 (10)
- August 2007 (11)
- June 2007 (6)
- May 2007 (7)
Categories
Photo of the Day
Advertising
Tonight Matthew I'm Going To Be With Jesus; Half Man Half Biscuit
Wordpress uninstall problem
Published by Stephen | Filed under Wordpress
I recently added Wordpress to one of our websites. I went as far as creating a new layout, a few main category pages and added a few posts just to see how everything came together. I was happy with the results, but I decided to scrap the project for various reasons…
Once the decision to scrap the project had been made I removed the folder containing Wordpress from the server and removed the database from my hosts control panel. I then went back to the site to test it was working properly. There was no obvious reason why it shouldn’t be, but I like to check these things because you just never know.
It was a good job I did because the site wasn’t working properly, or at least, not when a page that doesn’t exist was requested. Instead of getting the custom 404 error page I had created I got a 500 internal server error message instead. At first I was surprised to see this message and I couldn’t figure out what could be causing it. A little backtracking over the previous days work soon revealed that the culprit was the htaccess file I had to amend for Wordpress to format its permalinks properly.
I have set up Wordpress a few times in various places, some installations have gone live, some have not. Each time I do a set up I follow this Wordpress post installation checklist. One of the requirements is some additional code that needs to be added to the htaccess file in order for Wordpress to name pages in the format I choose.
This is the code:
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
When I removed Wordpress from the server I didn’t remove this code from the htaccess file. The site still worked correctly, but if a page was requested that didn’t exist the user got a 500 internal server error page and not the custom 404 error page I have created to keep people on the site. For some reason my host will not allow me to specify a custom 500 internal server error page!
I think it is important to do as much as you can to people on your website and custom error pages are one of the tricks you can use. I was glad to see this one working again!



Leave a Comment