Create search engine friendly WordPress links in Plesk and Webmin

It takes a little messing about but its easy to create wordpress links that the likes of Google, MSN and Yahoo etc can find easily in the search engines.

Firstly you need to set the WordPress options to show the post names rather than the page id. This is done in the Settings > Permalinks option of Worpress.

Once in, you will receive a message about Worpress not being able to modify your .htaccess file and so you will need to do this yourself. It works a little differently in Plesk and if you have a number of domains to manage you will find this easier to complete in Webmin.

To select your domain, go to Servers > Apache Webserver and choose the relevant domain. Then pick Per Directory Options by clicking on the http_docs folder in the Per Directory Options section. Then choose Editi Directives and paste at the bottom of that file the code output from WordPress earlier – see below


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

Then save everything and restart the Apache module. You will find your links then show instantly.

Share this post
Facebook
Twitter
Telegram
WhatsApp
Pinterest
You may also like
Comments