Enabling mod_rewrite and .htaccess di XAMPP pada Windows XP
By default, XAMPP did not enabled mod_rewrite and .htaccess. When you access your web that require mod_rewrite and place .htacces file inside the document root, you’ll get error page like in the screen shot below:
Follow these simple step to enable mod_rewrite and .htaccess using XAMPP under Windows:
- Open your httpd.conf file, usually placed in C:\xampp\apache\conf
- Find #LoadModule rewrite_module modules/mod_rewrite.so line and remove the # mark
- Replace all AllowOverride None instances into AllowOverride All
- Restart Apache service
- Check if the mod_rewrite module is loaded correctly using XAMPP phpinfo. See the screen shot:
Tips:
You can’t easily create .htaccess file using Windows Explorer. You can use these tricks:
- create htaccess.txt using Windows Explorer, put all your rules there
- open command prompt by Start-> Run ->cmd
- enter the document root where htaccess.txt file reside
- rename it into .htaccess using command below
ren htaccess.txt .htaccess
Pada Appserv
Getting .htaccess files to work on AppServ (Windows version) a lot of peoples computers doesn’t seem to work, I myself am one of those people, so I fiddled around the other day and got it working – so hopefully if you follow this tutorial you’ll understand how to get it to work and it should work for you.
First of all if you locate your Apache folder (within your AppServ folder, usually installed directly on your C drive) and go into a folder called “conf”, then open the file called “httpd.conf”.
Find:
#LoadModule rewrite_module modules/mod_rewrite.so
Replace:
LoadModule rewrite_module modules/mod_rewrite.so
Removing the ‘#’ (hash) symbol will enable the rewrite module. (Note: Some configurations are already loaded, if so ignore it)
Find:
AccessFileName .htaccess
Replace:
AccessFileName my.htaccess
Changing this from .htaccess to my.htaccess means that your .htaccess files will have to be called “my.htaccess” (However when you upload them to a real web server online then you’ll need to rename them back to .htaccess)
Now restart your Apache server (This can be done by going into the Apache folder, then into the “bin” folder and running the program “ApacheMonitor.exe”, opening it from the system tray and clicking “Restart”)


You wouldn¡¯t believe it but I¡¯ve wasted all day digging for some articles about this. You¡¯re a lifesaver, it was an excellent read and has helped me out to no end. Cheers,
I noticed that you’re not monetizing your website very well. Try using a cpa network like this one. If you have quality content, that your users are willing to fill out a survey for, then you can make quite a lot of money.
I have to state, you chose your words well. The ideas you wrote on your encounters are well placed. This is an incredible blog!