How To Enable / Use .htaccess / Nice permalinks in Apache Web Server on Windows
.htaccess is a web server directive file populalrly used in Apache Web Server in Linux / Unix environment. In windows environment there is a simple way to enable and use .htaccess. Additionally it allows you to create nice permalinks for software like WordPress or phpBB.
To use .htaccess you need to enable mod_rewrite. Even with that I didn't have much success when I separately installed apache web server and php. However if you install XAMPP it is a piece of cake.
XAMPP automatically installs Apache web server, MySQL database, PHP and a lot of other goodies. It does not however come with mod_rewrite enabled. Let us assume you installed XAMPP in %XAMPP% directory. Then you should open %XAMPP%\apache\conf\httpd.conf in notepad and search for mod_rewrite. You will find a line like:
#LoadModule rewrite_module modules/mod_rewrite.so
Remove the # from the beginning. It will now look:
LoadModule rewrite_module modules/mod_rewrite.so
Restart the Apache web server through XAMPP control panel. You are done!
Filed under CMS Software, Headline News, How To, Microsoft, Open Source Software, Pro Blogging, Tech Note, Technology, Web, Web Hosting, Web Services, Windows |
|
RSS 2.0 |
Trackback this Article
|
Email this Article
You may also like to read |





































October 30th, 2006 at 2:52 am
[...] XDForum (example: Anaconda Forum) is a nice basic forum software which works seamlessly with WordPress blogs (download our free theme and plugins). Unfortunately it works out-of-the-box with default permalinks only. Most site today use nice permalinks. This mini-tutorial will teach you how to use XDForum with nice permalinks (how to enable; tips and more). [...]
April 15th, 2007 at 8:31 am
Wanted to test some htaccess tips (they’re fine) and had exactly that problem on my machine with XAMPP–thank you!
August 4th, 2007 at 1:46 pm
Thanks a lot for the tip.
November 26th, 2007 at 8:21 am
Thanks, I was just reinstall my PC and try to deploy some of the application for my linux box to windows and found that it not working correctly. It thought that XAMPP will be in the same configuration for both boxes. Turn on mod_rewrite make everything back on track.