How To Check If mod_rewrite is Enabled in Apache

we are going to check If mod_rewrite is Enabled in Apache server, just follow these instructions on this page.

 if you have shell access or SSH access to your sever, the easiest way is to check your configuration file. check this post to see how:

EASY MOD_REWRITE TUTORIAL

-------------------------------------------------------------------------------

Otherwise, follow these steps 

Check to see if mod_rewrite is enabled

In addition, you can learn how to enable mod_rewrite in apache server at this post:

http://www.wallpaperama.com/disp-post10.html

There are several ways to check if its working, I will try to show you the easiest way-

Create a .htaccess file (a text file named .htaccess) with the following code in it
Options +FollowSymLinks
RewriteEngine On

Save the file to a subdirectory of your main site something like this

/rewrite-testfolder/.htaccess

Now attempt to browse to the subdirectory (http://localhost/rewrite-testfolder/). One of two things could happen

- No errors Congrats mod_rewrite engine is now enabled.

- 500, Internal Server Error If you get this message then mod_rewrite was not installed/enabled on your computer.

If you get a 500 error, you can learn to how to enable mod_rewrite in apache by visiting this post:

http://www.wallpaperama.com/disp-post9.html

8781 - Sat Feb 02, 2013 22:11:24