By Ranajee on
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?
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
Enable Clean URLs
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
Apache .conf chage
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.soJust remove the #
HTH
Clean URL's
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
How to remove ?q=
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.
It doesn't work.
Every time I try to run the Clean URLs test, it refreshes the page and nothing runs. Any help?
Enable clean Url
login as administrator
go to admin/config
then go to clean url then check the box for enable clean url. save configuration