How to make WordPress Permalinks work in Localhost
The other day i was playing around on my local WordPress installation when this error message appeared on my screen saying…
Not Found
The requested URL /Techronnati/wordpress/ibm-db2-cognos-tivoli-websphere-microsoft-google.html was not found on this server.
I was surprised. As a matter of fact, i was not expecting that to happen. Now you may probably ask, what the heck i was doing all along? You see, I was playing around on my wordpress’ permalinks structure, pretty much learning about Search Engine Optimization in the WordPress CMS. And so without much idea, i delved in and tried to investigate one by one that’s causing this error. Later on, i found out that WAMP or any other similar localhost webservers that can be run from a local computer do not have mod_rewrite enabled by default. I also discovered that the AllowOverride directive is set to none by default WAMP server installation, 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. I.E. http://localhost/yourwebsitefolder/?p=2. Collecting some information i got, here’s what i did.
- Using a text editor, open your httpd.conf file. In WAMP server, this file can be found in the \apache\conf directory
- Sift for the following line of code in that file.
#LoadModule rewrite_module modules/mod_rewrite.so
- Next, remove the # from the line as seen below to enable the module: Just for information, # symbol is actually a comment syntax for httpd.conf. So this should look like this.
LoadModule rewrite_module modules/mod_rewrite.so
- Then, search for AllowOverride in this httpd.conf file until you come to a line similar of the following:
<Directory />
Options FollowSymLinks
AllowOverride none
Order deny,allow
Deny from all
</Directory> - Verify if AllowOverride All is indicated. Change “none” to “all” if found otherwise so this should look like this.
- Save the httpd.conf file and Restart your wamp server. (Click on the ‘moon’ in the icon tray and select Restart Services)
- Login to your WordPress admin panel and set your custom permalink structure as desired. Then go view your site. Custom permalinks should now work on your localhost WAMP/XAMPP or other server.
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
Happy Blogging everyone.
Popularity: 1% [?]

Thank you. It has been a very frustrating experience not knowing what to do. Hours wasted. The rewrite_module was commented out. Glad to tell you that your articled helpmed me.
Wow, thanks Iyal for the sweet gesture. =) I am glad you are able to resolve your problem. =)
Excellent! I was wondering what the problem was and now I know. Thanks for this tip – all sorted now.
Thanks mate. This worked a treat.
Good to know mate… ;D Enjoy blogging.. ;D
Leave your response!
»
How I got started with IBM Lotus Notes Domino Programming
My career started roughly 8 years ago when i was hunting for an entry level job in 2001. Although many would have expected me to become a Math teacher, a Researcher, or Operations Analyst, since …
Tags
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Categories
$250
your site worth?
Support
If you feel happy about the content of this website and this site has helped you in any way, Feel free to donate via paypal. Thank you very much
Polls
Popular Searches
Random Posts
Latest Video Post
Recent Comments
Most Commented
Most Popular
Page generated 139 queries in 0.878 seconds. | Sitemap | Terms of Use | Privacy Policy | Techronnati Released v1.3
Please take time to show your support
for this site by visiting one
of our sponsors during this
brief intermission.
(This announcement will close shortly)