Posts Tagged ‘permalinks’

WordPress Permalinks Apache Setup

July 16th, 2009 No comments

Thought I’d includes some instructions for setting up “WordPress Permalinks” (which don’t work by default) which means you can get rid of those ugly WordPress URI’s and replace them with something more human readable. I know it’s a bit off topic but hey…I use it. 😛

Assuming you have inserted the runtime mod_rewrite DSO or complied Apache with —enable-rewrite then in order to get WordPress permalinks to function you need to include the following in your Apache config file (httpd.conf):

The quoted block below needs to go inside your virtual host section for your WordPress installation. Once Apache has been restarted your permalinks menu inside “WordPress Admin” can be used and now your new URL’s should be functional.

<Directory /www/mywordpress/>
RewriteEngine On
RewriteBase /www/mywordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]