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

Reply

copy and paste this in the

copy and paste this in the .htaccess file
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

From example B, drupal.org/node/15365

seo
seo tips
what is seo

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 Guarantee

By the end of your contract you will have at least as much additional business from your Web site as you spend on our services... or we'll work for FREE until you do.

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.

Follow us on twitter

RT @jonrognerud :: Google Creating Twitter Clone for Gmail :: http://bit.ly/9ZUyg5
10 hours 7 min ago by Volacci