Having installed Drupal, the website building Content Management System (CMS), on a cloud server I had some issues getting Clean URLs to work. This post describes how I got rid of my dirty URLs for Drupal hosted websites.
Default URLs for a Drupal hosted site include ?q= e.g. www.yoursite.com/?q=node/366 because it triggers a database query for what's after the ?q=. Removing these characters, or at least not displaying them in the URL makes search engines friendlier towards your site and may increase your page's rankings. A further step is to add aliases to pages so there is a human readable name instead of an id e.g. www.yoursite.com/barbie-girl instead of www.yoursite.com/?q=node/366.
Dirty URLs
Default URLs for a Drupal hosted site include ?q= e.g. www.yoursite.com/?q=node/366 because it triggers a database query for what's after the ?q=. Removing these characters, or at least not displaying them in the URL makes search engines friendlier towards your site and may increase your page's rankings. A further step is to add aliases to pages so there is a human readable name instead of an id e.g. www.yoursite.com/barbie-girl instead of www.yoursite.com/?q=node/366.





