How to Make WordPress Permalinks Work in Xampp
Sponsored Links:
Xampp and similar localhost webservers that can be run from a local computer do not have mod_rewrite enabled by default. Furthermore, the AllowOverride directive is usually set to none, causing Apache to ignore an .htaccess file. If this is the case, your WordPress installation might return a 404 error, stating post not found and you would only be able to access your posts via a default permalink structure http://localhost/?p=2. In the following simple solution, I show you how to make WordPress Permalinks work in Xampp and other localhost server installations. Upon completion, you will also have the ability to use .htaccess files on your local server.
This is because in xampp, mod_rewrite is not enable by default. Beside, AllowOverride directive in Apache configuration file is also set to None by default, causing Apache web server to ignore any .htaccess file, which used to rewrite the permalinks to the post’s actual url.
To use permalinks in WordPress that installed on xampp-based server, edit the httpd.conf that locates in C:Program Filesxamppapacheconf directory (folder). Open httpd.conf in any text editor, search for “mod_rewrite”. You should come to a line like this:
#LoadModule rewrite_module modules/mod_rewrite.so
Remove the hash sign (#) from the line. The # indicates the line is not in effect. The changed line should looks like this:
LoadModule rewrite_module modules/mod_rewrite.so
After that, search for “AllowOverride”. You will come to a line like this:
AllowOverride None
If the above line is contained within default directory (mean the directory declaration is just ), then it can be left as it is. Continue searching and you would come to a second instance of AllowOverride which is contained inside your web server’s document root (default for xampp is in Windows). Change the None to All to make the line looks like this:
AllowOverride All
Restart the Apache. Permalinks is working after restart.
Related posts:
- Upgrade WordPress 2.5 After to long i wait upgrade wordpress 2.5 with script Fantastico to automatically install. Now i manual upgrade wordpress 2.5. This is step by step...
- WordPress 2.6.3 Manual Upgrade Guide WordPress 2.6.3 upgrade was made available by development team a few hours ago and while it is rated as low risk, I wanted to be...
- Making Use of Gallery WordPress Themes Are you sick and tired of looking for the best WordPress theme that is best suited for your blog? Now the solution for this problem...
- WordPress 2.7 Release Stable Yesterday WordPress to the latest version of the Worpress 2.7. WordPress 2.7 is the name given Coltrane. In WordPress Blog with the title WordPress 2.7 ...
- Linux, Apache, Mysql, PHP (LAMP) The acronym LAMP refers to a solution stack of software, usually free and open source software, used to run dynamic Web sites or servers. The...
Tagged as : localhost, permalinks, wordpress, xampp,
Incoming search engine terms:
bankofamericaonlinebanking wordpress com, changing permalink for wordpress on xampp for linux, xampp and wordpress permalinks,
Very good comments and pictures. My Favorit Blog. Thank you Autoversicherung
a good way to promote a site is via Social media like Facebook and Friendster.~-.