Troubleshooting

In this section are instructions for troubleshooting specific problems with Clean URLs.

Configuring clean URLs for various systems

This section provides instructions for configuring clean URLs on specific hosts.

Understanding Drupal paths

In Drupal terms, a path is the unique, last part of the URL for a specific function or piece of content. For instance, for a page whose full URL is http://example.com/?q=node/7, the path is node/7. If your site is using clean URLs, the full URL in this example would be http://example.com/node/7; the path would still be node/7. Because URL aliases can completely replace what visitors see as the URL, the paths discussed here (which are still how Drupal decides what content to show) are sometimes called internal paths.

Drupal paths are important because many configuration screens in the Drupal admin area use them. For instance, when you are adding a new item to a menu, you tell Drupal what page the menu item should point to by entering the path to the page.

Here are some examples of paths you might find in a Drupal site:

  • node/7
  • taxonomy/term/6
  • admin/content/comment
  • user/login
  • user/3

How to find Drupal paths

There are several ways to find the path to a particular page on your Drupal site. The first step is to find the URL of the page of interest:

  • If you know how to navigate to the page, you can go there and find the URL in your browser's URL bar.

Step 6: Configure clean URLs

By default, Drupal uses and generates URLs for your site's pages that look like "http://www.example.com/?q=node/83." This style of URLs can be hard to read, and can prevent some search engines from indexing all the pages of your site. Research suggests this may not be as big of a problem for major search engines as it once was; however, it is worth noting the recommendation from Google's webmaster guidelines stating:

If you decide to use dynamic pages (i.e., the URL contains a "?" character), be aware that not every search engine spider crawls dynamic pages as well as static pages. It helps to keep the parameters short and the number of them few.

Subscribe with RSS Subscribe to RSS - url