This is a super short (and very rough) post on how to enable mod_rewrite in Apache 2.2.
I have seen numerous posts on how to create “rewrite” scripts but found very little information on how to enable this feature in Apache 2.2.
Step 1: Uncomment the line with “mod_rewrite.so” from httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
Step 2: Search for the keyword “.htaccess” and change the AllowOverride value
AllowOverride All
Step 3: Restart Apache and check if module has been loaded (LoadedModule section in phpinfo())
Step 4: Create a test .htaccess in your root directory
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^success\.html$ index.php [L]
Step 5: Type http://localhost/success.html in your browser (change port info based on your setup)
You should be able to see your index.php load up.
Recommended book:


Hi..
Thanks Filipino.
AllowOverride All : this was missing point in my configuration…
Best wishes for your http://www.slingandstonemusic.com site
Hardik.
You’re most welcome!
By the way, there’s a really neat tool for generating your RewriteRules that you can play around with here.
Thank You very much!
Thanks !!!
It’s so simple !!!, i’ve been 2 days searching the right way until i got here =)