I googled quiet some time on using custom links for your site on windows using XAMPP. All of them suggested me to uncomment line for âmod_rewriteâ, set AllowOverride to All. I tried this but it still faced same issue, a 404 error page.
Then I came to one more solution that I tried an bingooo!, it worked like charm. Just to keep note and save some time of other developers , I am putting all steps here . First 2, 3 steps are commonly suggested.
- Open your apache conf file xhttpd.confx in any editor of your choice.
- Search xmod_rewrite.sox, you may encounter line as follows x
#LoadModule rewrite_module modules/mod_rewrite.so
- Remove the comment x#x.
- Find xAccessFileNamex , you may see a line like x
xAccessFileName ht.aclx change it to xAccessFileName htaccess.txtx.
- Create xhtaccess.txtx in sites root directory.
- Restart apache
Thats it, you are done!