How can I remove the ?q= part from my urls.

eg making sitename.com/username instead of sitename.com/?q=username

Comments

deciphered’s picture

You need to turn on Clean URLs.

Clean URLs can be turned on in the administration under Clean URLs in the Site Configuration section.

JonGirard-1’s picture

Basically, the question ?q= are appearing because you haven't enabled clean urls.

if your server can support clean urls, then you can enable them from right inside administration.

This may help:
http://drupal.org/node/15365

A quick google search also found this:
http://www.google.ca/search?q=enabling+clean+urls+site%3Adrupal.org&star...

Good Luck,

Jon.

dhrubajyoti’s picture

One problem is arising. How can I configure my apache to make it rewrite so that I can run the "Clean Url"

I am using mysql and a localhost in my PC

ray_223’s picture

Enable the mod_rewrite apache module:

In http.conf uncomment the line (i.e. remove the # sign) and restart apache:

LoadModule rewrite_module modules/mod_rewrite.so

Ray Smith
http://RaymondSmith.com