How to Turn On Clean URLs in Drupal

Dr. Upal likes his URLs clean

Just like websites of old, Drupal uses a query string to pull information from a database. Every blog post, comment, content, user entry, and so on is stored in tables on the server so you need a query string to go find the data and bring it back to the browser window.

One of the essential online elements that SEO addresses is creating website URLs that are “clean” and indexed efficiently by the search engines. They are easy on the eyes and on the spiders who index your site. If you are not sure what a clean URL is, here is a quick definition:

Clean URLs are URLs that do not contain any strange characters like ?, =, &, or $.

In Drupal, a clean URL looks like this: http://www.yourDrupalsite.com/node/1. However, Drupal’s standard URLs are not clean. Here are a few examples of Drupal’s standard URLs:

http://www.yourDrupalsite.com/?q=node1

http://www.yourDrupalsite.com/?q=taxonomy/term/2+11+21+22

How To Optimize URLs

Please note: It is important not to confuse a clean URL with a properly optimized one, though. While a clean URL can be easily read, it doesn’t tell the search engines anything about the website. Search engine optimized URLs contain some keywords. An example of a clean and optimized URL:

http://www.yourDrupalsite.com/austin-florist-roses

How To Turn On Clean URLs

Turning on clean URLs in Drupal is a necessary step for any Drupal site owner. During installation of Drupal 6 will run the clean URL test automatically and will show the results. If you weren’t the one to install Drupal or you don’t remember whether it worked or not, you should check to make sure that clean URLs are turned on.

1. Point your browser to http://www.yourDrupalsite.com/admin/settings/clean-urls or go to your admin screen and click Clean URLs.

2. The Enabled radio button should be selected. If it is not, select it and click Save Configuration.

If You Cannot Enable Clean URLs

There is a possibility that your hosting company has some settings they need to adjust for you or that you need to edit your .htaccess file to make it work. Visit http://drupal.org/node/15365 for common configuration issues. There are solutions listed for clean URL problems with 1and1, Mac OS X, Bluehost, and GoDaddy.

Comments

thank you

thanks for sharing..

web_tasarimi

Regards, Raymond Weil watches

Regards,

Raymond Weil watches

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

The Volacci SEO Blog

Thank you for joining me for Part Two of my Content Strategy Process blog post. Last week I...

Partner With Volacci

Being a partner with Volacci has many advantages

By participating in our referral program, you will financially benefit from any referrals you send our way.

The Volacci SEO Podcast

Ben Finklea talks with Stephen and Thomas from Tree House Agency and Robert Douglass of Acquia at Drupalcon 2009 in Washington DC.