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
Definetly it is working thanks a lot , ı can solve my problem with this informaiton.
Cool, no pain at all , Everything works fine for me on Wamp server 2.0
http://localhost/wordpress/2010/12/08/hello-world/
Thanks
Saroj´s last blog ..Free Web Business Icons
Thank you so much! I spent several hours already trying to solve this problem. This post was God send. Fixed my problem right away. You are a saint!
Thanks
thanks mate, I was about to pull my hair about this problem , thanks
Very handy. Just set this up for a client
Much appreciated.
Good stuff man great for fixing my issue with wamp pretty permalinks error, not working, broken. Hope the little key word stuff gets you some traffic thanks for the help it was great to go from problem to solution so easy.
AWESOME! A half day long worked on it to find what the heck is the problem. Thanks Man!
Thanks very much for this, solved my problem straight away!
Sorry to say about your post i have tried your process but it is not working.But i get some good knowledge.Can you please help me to slove my problem.Thank you in advance
Leave your response!
Warning: getimagesize(http://www.crunchgear.com/wp-content/uploads/2009/07/datatraveler-300.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/pilotcom/public_html/blog/wp-content/plugins/d13slideshow/d13slideshow.php on line 539
»
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 154 queries in 1.260 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)