Knowledgebase: Improve your websites
How do I do set up Clean URLs for my website?
Posted by Diego Cousinet on 21 February 2011 10:28 AM

This article is for users who have PHP websites and who want to set up their website with Clean / Search Engine safe URLs.

Web Drive Linux / PHP* servers support mod_rewrite which will allow you to configure your website with Clean or Search engine safe URLs.


Many CMSs like Drupal, Oscommerce allow clean urls like:


which actually points to:



Many of the CMSs have a file called .htaccess which has mod_rewrite rules which will allow you to do the above.

On Webdrive Linux servers, following configuration will work in a .htaccess file:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?id=$1 [L,QSA]

Note: Please note the forward slash in the last line before the index.php. This is required on our servers.

More information at:



(40 vote(s))
Not helpful

Comments (0)