/ WORDPRESS

Enable Pretty Links in Word Press

I wanted to enabled “Pretty” permalinks for my blog and found it wasn’t just a click of the button.

Well, it was just a click of a button but when I clicked on the button, Wordpress told me:

If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index.php$ - [L]
%{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>

Honestly I don’t know very much about mod_rewite but apparently it used the .htaccess file found in the Wordpress directory. The only problem is when I check the directory for my blog, /var/www/wordpress/, I don’t see an .htaccess file.

Poking around the web taught me I should first configure .htaccess for pages under /var/www/. Next I just created the file and added the content and restarted apache. I doubled checked Wordpress documentation and verified I did things correctly. Not too bad.