Drupal 7 has the option to allow friendly URLs which makes for more memorable and easier to remember web page addresses for users of the CMS. Drupal also refers to these URLs as clean URLs.  The following tutorial explains how to go into the interface to enable clean URLS and also explain the difference with the option diabled.

 

Setting up Search Engine Friendly URLs in Drupal 7

  1. Log into the Drupal dashboard as an administrator.
  2. In the Menu bar at the top of the screen, click on Configuration. Look for Search and Meta Data and then under that menu look for Clean URLs. Click on it in order open the screen as shown below:

    Enable the Clean URL by clicking in checkbox

  3. Click on the checkbox in order to Enable Clean URLs.  Note that by default this option is disabled.

  4. Click on the Save configuration button in order to save your entry.

 

To understand the difference between a search engine friendly (SEF) URL and a URL that is not friendly, take a look at the table below.  Note that Drupal is referring to the SEF URL as a a "Clean URL".

Clean URLs DisabledClean URLs Enabled
http://domain.com/article5475&698 http://domain.com/article-explains-URLs

Keep in mind that since Drupal is generating these URLs based on the database within the Drupal installation. If the website is moved, then the URLs will need to be rebuilt by Drupal.  This is done by disabling the Drupal option for the clean URLs, saving the change, then re-enabling the option so that Drupal installation re-creates the URLs based on the new location.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Comments

2013-04-02 3:57 pm
This does not seem to work.

I just installed Drupal through Softabulous and followed these directions, but there is no checkbox at the place in Drupal you show above.

Then, when I click on "Run the Clean URL Test" it says, "The clean URL test failed."

So . . . how do we get clean URLs?

George
Staff
12,339 Points
2013-04-02 4:35 pm
Hello George,

Thank you for your comment. As a test we performed a new installation of Drupal, and enabled this feature successfully.

If you have modified your Drupal with Modules and/or Themes it may have changed the functionality as well. You can try reverting back, or reinstalling Drupal and testing again.

Also, here is a link to the official Drupal support page that offers other solutions.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
2013-04-04 3:00 pm
Hi thanks for trying to help, but I cannot make much sense of the Drupal help pages. It is incredibly complicated and not organised well.

It took my a long time to figure this out.

This is the final solution.
I opened the .htaccess file and after a lot of experimenting found that these lines in bold are the problem. (I have drupal installed in a subdirectory.)
You have to delete the # in front of RewriteBase and write the name of your subdirectory after the / .
(Yes, you would think any competent programmer would include that in the install, but that is beside the point, I guess.)

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
<strong> RewriteBase /outdoors</strong>
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /

Finally,
anyone who does not want to spend a lot of time tinkering around with a complicated system should[i]<strong> NOT</strong>[/i] use Drupal. It is not very easy to learn. At all.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}