500 internal server error caused by editing htaccess file500 internal server error caused by editing htaccess file

Just wanted to write a quick post about why you might get a "500 Internal Server Error" message after editing your .htaccess file.

This happened to me a few days ago, but i just ignored this message and used some work-around (can’t remember what exactly i did during that time). But i wanted to find the real issue behind this error as it was getting annoying having to encounter it more often.. I was able to pin-point the cause of the problem in matter of a few seconds.

But the weird thing is that i first tried doing a quick search for “500 Internal Server Error caused by editing .htaccess file” on Google; which was a very specific search, but i couldn’t find anything specifically related to my issue. I am sure i would have eventually ended up with a good result, but time was a factor here :)

So that is the reason behind this post, I’m writing this for future reference and in case anyone else who might stumble upon this issue.

OK, I know; Enough talk. The issue was the character encoding of the file.

I was using the Komodo IDE instead of of my usual Notepad+, I noticed my Komodo was setup to save all files in the UTF-8 character encoding; so i decided to change the file encoding to Western European CP1252, then saved the file again and BOOM! It worked :)

Please let me know if this helped you :)

{ 3 comments }

How to Use Post Thumbnails Feature in WordPress

by Zubair on November 19, 2010

How to Use Post Thumbnails Feature in WordPress

Displaying Post Thumbnails in your wordpress theme has become a common habit for many theme developers, until now people used to use many different hacks and approaches to include the Post Thumbnails functionality.

The built-in Post Thumbnails functionality for WordPress was unavailable to users until version 2.9 came out which bought alot of great changes along with many improvements. We will be going through the process of learning how to use the WordPress Post Thumbnails in our own themes.
[click to continue…]

{ 14 comments }

WordPress Post Thumbnail and Image Functions

by Zubair on November 16, 2010

Wordpress Post Thumbnail and Image Functions

Working with set_post_thumbnail_size and add_image_size

Today, I would like to post about these two handy functions introduced in WordPress v2.9, these two functions are used to integrate and work with the wordpress post thumbnails features, which was also introduced in wordpress v2.9.

I have been seeing people say that these functions are not working in their theme as they should. But i would like to point out some things that might help you with that and at the same time help you understand what the difference in these two functions are.
[click to continue…]

{ 3 comments }

Adding Numbers to Your WordPress Comments

November 13, 2010

I was just working on making custom theme, and thought of displaying numbers for each comments that are posted. I have done this before prior to wordpress version 2.7 – but since then a lot of things have changed, I noticed the need to change things around a little to achieve the wordpress comment numbering. [...]

Read the full article →

CSS font-style: oblique vs italic

November 5, 2010

What’s the difference between CSS’s oblique vs italic? Oblique type (or slanted, sloped) is a form of type that slants slightly to the right, used in the same manner as italic type. Unlike italic type, however, it does not use different glyph shapes; it uses the same glyphs as roman type, except distorted. (Wikipedia) I [...]

Read the full article →

Apache 2.2.x won’t load php5apache2.dll solution

April 15, 2010

Recently, I started upgrading all my applications to the latest versions or at least upto the version my hosting providers uses – i was using Apache 1.3.x HTTP Server, but I’ve finally upgraded to the latest version which is Apache 2.2.15 & PHP 5.3.2 as of writing this post.

Read the full article →

Wateen Connector v2 – For Wateen Telecom Consumers

August 4, 2009

Wateen Connector lets you log into your Wateen Services as you usually do. The extra features that you get is that Wateen Connector allows you to Monitor your internet connection and if it goes down it will let you know about it, And will ask if you like to keep monitoring it. If you set monitoring on you will be notified as soon as you disconnect or get connected – Wateen Connector also has a Auto-Login feature that logs you into your Wateen Account easily and effortlessly!.

Read the full article →

Upload Class For PHP

February 5, 2009

class.upload.php – Free PHP Upload Class This PHP script uploads files and manipulates images very easily. The perfect script to generate thumbnails or create a photo gallery! It can convert, resize and work on uploaded images in many ways, add labels, watermarks and reflections and other image editing features. You can use it for files [...]

Read the full article →

VB.net – How to check if you are connected to internet using VB 2005

October 29, 2008

Determining if you or your application is connected to the internet may sound like an easy task – But it really wasn’t as easy as it sounds for me when i was trying to figure a way out to find a way to know if my computer is connected to the internet using VB.net / Visual [...]

Read the full article →

Visual Basic .NET – using Microsoft Visual Studio 2005

October 12, 2008

I just start programming in the .NET Environment recently – i have used Visual Basic 6 before, but the .NET Environment was new for me but still it was not so tough after all. I’m not an old VB 6 guru either I just used to make stuff on it for fun – the only i remember [...]

Read the full article →