HowTo: Fix Permalinks in WordPress

I totally busted my permalinks… but just fixed it..so I thought i’d share the wealth…

Edit your wordpress.conf and ensure these lines are there

Options Indexes MultiViews FollowSymLinks
AllowOverride FileInfo

Example of an httpd.conf using bitnami stack in windows server 2003:

Alias /wordpress/ "C:/Program Files/BitNami WAMPStack/apps/wordpress/htdocs/"
Alias /wordpress "C:/Program Files/BitNami WAMPStack/apps/wordpress/htdocs"
Options Indexes MultiViews FollowSymLinks
AllowOverride FileInfo
Order allow,deny
Allow from all

Next step is to edit your .htaccess file to look like this:

# BEGIN WordPress
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
# END WordPress

Go to settings -> permalinks and select “custom” and paste in this:

/%postname%/

Finally, restart Apache

Leave a Reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>