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
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
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.