Enable Pretty Permalink for Local WordPress Installation

October 9, 2007 – 6:15 am

A default WordPress installation does not come with pretty permalinks (links with nice, readable words that reflect your post content e.g). An example of a default WordPress permalink:

http://www.syahid.com/?p=123

It will be better to change the above web address / permalink to reflect the content of your post (pretty permalinks), for example:

http://www.syahid.com/2007/10/08/sample-post/

Enable Pretty Permalink for Local WordPress Installation

 

Much better right?

How to Enable Pretty Permalink for Local WordPress Installation

If you have followed my WordPress on local installation guide, you will realize that changing your default permalinks from Options -> Permalinks -> Customize Permalink Structure on your WordPress dashboard will not work immediately after installation. There are two things you need to change to make it work:

 

1- Enable Apache mod_rewrite module

 

  • Open your httpd.conf configuration file (C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf) with Notepad.

 

  • Remove the # on the #LoadModule rewrite_module modules/mod_rewrite.so line so it becomes LoadModule rewrite_module modules/mod_rewrite.so only.

 

  • Save httpd.conf .

 

 

2- Enable AllowOverride for web directory folder (htdocs)

 

  • Open your httpd.conf configuration file (C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf) with Notepad.

 

  • Under the <Directory “C:/Program Files/Apache Software Foundation/Apache2.2/htdocs”> section, change a the line that says AllowOverride None to AllowOverride All.

 

  • Save your httpd.conf .

 

 

And do restart you local Apache web server once . Now your can enable the pretty permalink structure from the WordPress dashboard and it will work nicely after that.

Bookmark This Post
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Reddit
  • Twitter

You come again! Maybe it is the right time to subscribe to my RSS feed. Thanks for the support!

Related Posts:

  • None Found

  1. 10 Responses to “Enable Pretty Permalink for Local WordPress Installation”

  2. Thanx a lot, you save my life.
    hello from Buenos Aires

    By Gustavo on Aug 15, 2008

  3. Thanks a lot buddy for this nice post! Your post on permalinks really saved a lot of my time and helped me through the problem. Great work, Keep going!!

    By Kabir on Oct 9, 2008

  4. @Kabir: Thanks!

    By Syahid A. on Oct 9, 2008

  5. Wow, after hours of trying to figure this out, and reading several similar tutorials, your was the only one that gave me what I was missing.

    Remove the # on the #LoadModule rewrite_module modules/mod_rewrite.so line so it becomes LoadModule rewrite_module modules/mod_rewrite.so only.

    None of the others mentioned this, and it is what solved my issues. Thanks!

    By Jay on Nov 18, 2008

  6. @Jay: Glad I could help. :D

    By Syahid A. on Nov 18, 2008

  7. i’m working locally with mamp and I’ve done the things you said but it doesn’t work for me. Any help?

    gr
    xavier

    By lryd2l on Jan 6, 2009

  8. @lryd2l: did you follow the instructions step by step?

    By Syahid A. on Jan 6, 2009

  9. yes really nice working good.
    many thanks for this i follows

    >1- Enable Apache mod_rewrite module
    >2- Enable AllowOverride for web directory folder (htdocs)

    these two steps and got it!!

    i was worked with this problem from morning to till now only it’s working i’m really happy.

    thanks,
    vennila

    By vennila on Mar 23, 2010

  1. 2 Trackback(s)

  2. Jul 27, 2008: Local wordpress permalink problem - Solved! | eBloggy.net - Discussions Related To Internet
  3. Dec 14, 2008: permalink structure? - DIY Themes Forums

Post a Comment

Clicky Web Analytics