I setup drupal locally. I browse each page but the url comes like "http://localhost/drupal/?q=admin/modules...". What I want is to remove "?q=" from the query string. Can I use the Url aliasing for this purpose?

Comments

narres’s picture

Go to admin/settings on your site (http://localhost/admin/settings), Open there the "General settings". At the end there is a "Run Clean URLs Test". Run this and if it is successful you are able to enable the "Clean URLs".

If you are running Apache, you need mod_rewrite to be enabled.

Thomas Narres
Keep the sunny side up

Thomas Narres
Keep the sunny side up

MMiner’s picture

Just to add to Thomas's post, the .conf entry you're looking for (Apache 2.2.x anyway) is:

#LoadModule rewrite_module modules/mod_rewrite.so
Just remove the #

HTH

syawillim’s picture

You need to enable clean URL's under administer>>settings. You may or may not be able to do this depending on the web server you are using locally.

www.justapickle.com
blogging community for the socially conscious

www.slickfish.com.au
professional, affordable web site design, production and maintenance for small business

nlink’s picture

Hi,

I have posted the details of this out here how to remove ?q from urls, i have also posted on how to enable clean urls and rectification to a possible problem when enabling them. I hope it helps.

Thanks.

Jason10121’s picture

Every time I try to run the Clean URLs test, it refreshes the page and nothing runs. Any help?

shamseer.ch’s picture

login as administrator

go to  admin/config

then go to clean url then check the box for enable clean url. save configuration