Drupal 8 has a slightly different approach to Clean URLs than the previous versions. The old dirty URLs such as http://example.com/?q=home have been replaced with the more normal http://example.com/node/1> Still,this is not very descriptive. That is where URL Aliases come into play.

You can customize the URL for a particular node so that the URL is more relevant. For example, the http://example.com/node/1 may link to your About page, so you want it to display as http://example.com/about. Below are the steps to making this happen within your Drupal 8 site.

How to create a URL alias in Drupal 8

  1. Log into your Drupal 8 admin interface.
  2. Click on the Menu from the upper menu toolbar.
  3. Another upper toolbar will appear directly beneath the first, click on the Content option.
  4. You will see a list of all created content. Locate the item you want to create the Clean URL for and click on the Edit option from the dropdown on the far right of the row for that item.
  5. Once on the edit page for the selected content, look to the right-hand sidebar and click on the URL Path Settings link to expand the section. From there, enter the preferred name of the node. For instance, our article will use the alias lorem.
  6. Once you have entered the new alias information, click on the Save and keep published button at the bottom of the page. This will save and activate your new alias. Below is a shot of the URL for the Lorem article both before and after we set the URL alias.
    BeforeAfter
    URL before the clean URL changeURL after the clear URL change
Continued Education in Course Drupal 8
You are viewing Section 10: 301: Creating URL Aliases in Drupal 8
Section 9: 302: Creating a comment field for content types in Drupal 8
Section 11: 300: Clean URLs in Drupal 8
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!

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!
Ask a Question
n/a Points
2014-08-29 5:40 am

Can this be done automatically without Pathauto for Drupal 8? I'm asking because Pathauto still isn't ported to Drupal 8 :(

Staff
20,848 Points
2014-08-29 11:06 am
Hello Menial,

This currently needs to be done manually for each node, to my knowledge. I'm certain that modules such as Pathauto will eventually be Drupal 8 compliant.

Kindest Regards,
Scott M

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.

2 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!