Know thy all....

Friday, 15 January 2010

How to remove the ?q= in drupal

In drupal, each url will form like this

http://www.example.com/?q=node

This is somehow very hard to remember and its very odd too…

but there is an option available in drupal to clean ?q=

Step 1: Administer –-> site configuration –> Clean urls

Step 2: by default, it will be disabled, you can check the radio button to be enabled

Step 3: if the Enable/Disable radio button is not clickable, the you need to Load the mod_rewrite module to be enabled

Step 4: open the httpd.conf or apache2.conf  of Apache server and the find the line

#LoadModule rewrite_module modules/mod_rewrite.so

change the above line as (just remove the # symbol)

LoadModule rewrite_module modules/mod_rewrite.so

and goto step 3

Step 5: Still if you are unable to clear it, the visit the following link:

http://drupal.org/node/15365

(If you are hosting your account with yahoo small business none of the options will work!!! For more explanation, please visit the link http://www.pradeepkumar.org/index.php/2010/01/issues-with-yahoo-small-business-htaccess-and-mod_rewrite.html

0 comments:

Post a Comment

Pradeepkumar.org Copyright © 2011 | Template created by O Pregador | Powered by Blogger