Enable Clean URL in Drupal

Step 1

Create a .htaccess file in your website's root directory and place the following code in it.

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

Step 2

Login to the Admin section of your Drupal site and enable the Path Module.

Path-Module

Step 3

Run a clean URL test and enable the Clean URLs.

enable-Clean-URL

Now you should be able to see the search engine friendly URLs :)

Doesn't drupal already come

Doesn't drupal already come with an htaccess file, why shouldn't that be used then?

Yes, Drupal comes with

Yes, Drupal comes with .htaccess file but it didn't work for me.