wordpress permalink

I finally got around to configuring Permalinks in WordPress! Some of you might laugh but based on my server configuration I had to do a little bit of research, configuring Permalinks in WordPress on a Parallels Plesk system requires a few minor modifications to the vhost which is hosting the WordPress Blog.

1) The first step is to check the directory of your vhost, you want to check for the .htaccess file:

ls -la /var/www/vhosts/<vhost-name>/conf

2) In my case the .htaccess file was not there, so I had to create it

touch /var/www/vhosts/<vhost-name>/conf/.htaccess

3) Make sure you change permissions on the file

chown root:apache /var/www/vhosts/<vhost-name>/conf/.htaccess

4) Edit the file accordingly, add the lines WordPress tells you to under “Settings –> Permalink.”

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

5) Now you need to reconfigure the individual vhost

/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=<vhost-name>

Or the new way Parallels Plesk requires you to do it (the above one works but you receive and warning: WARNING: You are using obsolete option, use corresponding option of httpdmng). See this post by Bryan White

 /usr/local/psa/admin/bin/httpdmng –reconfigure-domain skrakes.com

6) Test your WordPress Blog, the Permalink should now be working!

Leave a Reply

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