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

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.