enable mod_rewrite in Apache 1.3+WinXP

mod_rewrite provides an effective way to make short/friendly URLs and it also makes your site more attractive for search engine crawlers.

You can enable mod_rewrite for Apache 1.3 with the below steps easily.

First step
Remove '#' in front of
LoadModule rewrite_module modules/mod_rewrite.so
Make sure 'mod_rewrite.so' is available under 'apache installation directory/modules'.

Second step
Remove '#' in front of
AddModule mod_rewrite.c

Third step
Set AllowOverride to any of these
AllowOverride FileInfo Options
or
AllowOverride All

Rember, you will find 2 instances of AllowOverride. One like
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

and the 2nd one similar to

<Directory "C:/Program Files/Apache Group/Apache/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Change the value in the 2nd instance.
Don't forget to restart Apache for these changes to take affect.

A cool mod_rewrite cheat sheet.

Bookmark and Share

Related Posts

2 Comments »

  1. nanhe said,

    October 18, 2008 @ 1:02 pm

    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule article-category-(.*)\.html$ articlesummary.php?category_id=$1
    RewriteRule article-detail-(.*)\.html$ articledetail.php?articleid=$1
    is not working in my domain

  2. Wasif said,

    October 22, 2008 @ 8:16 pm

    There is no issue with the rewrite rules. What is the problem you are facing with these rules?

RSS feed for comments on this post · TrackBack URI

Leave a Comment