Enabling mode_rewrite on local xampp

First you need to access the /xampp/apache/conf/ folder, backup the httpd.conf file, then open it in notepad2 (from http://www.flos-freeware.ch) or another vanilla editor (NOT WINDOWS ANYTHING!), and make sure that mod_rewrite is uncommented.

Once that's done, you shouldn't need to do any actual chmod on files. I've run xampp since its VERY early days (like maybe 0.8?), and all I've ever had to do is make sure mod_rewrite is enabled. That way, if you have an .htaccess file in your local folders, it won't bork the process.

Don't forget after setting in httpd.conf in this section:

<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

<Directory "/opt/lampp/htdocs">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Order allow,deny
Allow from all

you should enable mod_rewrite:

Make sure you have saved and closed the httpd.conf file before restarting as it might remain locked. There's no reason why this would stop Apache working as it's a fairly standard module. Does Apache work when you add the comment back to the line?

If clean URLs still aren't working you can also try setting 'AllowOverride All' to your working directory. Again, you'll have to search for this in your http.conf file, but you may find it referenced several times, so check that you are modifying the correct version. Here is how mine is set:


To enable XAMPP mod_rewrite, you need to change a setting in your httpd.conf file which is located at xampp\apache\conf. Before making any changes, I highly recommend creating a backup of this file. Make a copy of the file and rename it httpd.conf.bak.

Once you have completed backing up your httpd.conf file, open it up in notepad (I love notepad++, if you don’t have it, highly recommended). Find the line that says “#LoadModule rewrite_module modules/mod_rewrite.so” this should be around line 117-120. Remove the “#” symbol. Save the file and restart Apache.

Popular posts from this blog

Manny Pacquiao vs Adrien Broner Fight Update

Nonito Donaire vs. Stephon Young Fight Replay Update

Removing powered by Phpfox