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.

Like this Article?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Tim Sisson, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Latest Questions

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Ask a Question!
Recent Questions
  1. Merchant Account/Payment Gateway Requirements?
  2. My email is being rejected due to abuse by inmotion as recognized by mailspike.org.
  3. how can I change a logo and columns on a Joomla template?

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!