In our last tutorial, we explained the basic concept of Search Engine Friendly URLs in Drupal 7. In this tutorial, we'll expand upon those ideas and show you how to enable clean URLs, which is required for Search Engine Friendly URLs to work.

Please note:
Clean URLs, the setting discussed in this article, is enabled by default. You should only have to follow these steps if you are experiencing an issue with getting your new URLs to work correctly.

  1. Log into the Drupal dashboard
  2. Go to Configuration >> Search and Meta Data >> Clean URLs
  3. Place a checkbox next to Enable clean URLs. This is enabled by default.
    drupal_clean_urls_1
  4. Click the Save configuration button.

    At this point, you can test to see if clean URLs is working correctly. In our Drupal 7 site, there is a link in the sidebar that says Create new account. The following table shows the URL structure of this page before and after clean URLs are enabled:

    Clean URLs Disabled Clean URLs Enabled
    http://domain.com/?q=user/register http://domain.com/user/register

    The Clean URLs setting also impacts URL aliases set for content types, such as basic pages and articles. In previous tutorials we created basic pages and articles. In one of our basic pages, we set the URL alias to about-this-site. Again, you can see in the table below how the clean URLs option impacts this page:

    Clean URLs Disabled Clean URLs Enabled
    http://domain.com/?q=about-this-site http://domain.com/about-this-site

If you need further assistance please feel free to ask a question on our support center.

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!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Should I enable clean URLs using the temporary URL?
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

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.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!