Saturday, 13 April 2013

Clean URLs in Drupal

Clean urls in Drupal works same as told in url rewriting using htaccess. It says 

" If you are unhappy with the default URLs in Drupal, you may be able to tell Drupal to use "clean URLs", eliminating the "?q=" in your site's URLs"

This is what we said in Rewrite URLs in Htaccess, but the difference is that cleaning (rewriting urls in drupal) is far more easy then cleaning urls (rewriting urls) manually.

See and follow the following steps in order to achieve urls rewriting in Drupal.

Open up your drupal admin panel. See the following image.



Click on "Administer" link to open "administer" panel. 


Now go to "Clean URL" section.under "site configuration" category.


Click on enable (as you see in image below) and click on "Save Configuration" button. 


and you are done.

Now the urls that were looking like 

http://www.domain.com?q=page&cat=node

will be converted to some thing like 

http://www.domain.com/node/1

1 comment:

  1. It is the most amazing article ever read on this earth. Guess what!!! Today for the first time I read your article and in one shot I liked your article and the way you write

    ReplyDelete