Exercise 7.2 - Create a URL alias
Last updated
Was this helpful?
Last updated
Was this helpful?
In this exercise you’ll learn how to create a URL alias for a page.
Return to edit the page created in . (From the Admin menu click on Content, then click on your page from the list and click the Edit menu item).
Expand the URL alias section.
Set a custom URL alias, such as /important-content-page (you may choose your own). Note The URL must begin with a backslash: '/'
Click on the Save button.
Note the new URL for the page.
Try navigating to the /node/100 path noted down in the previous exercise, by pasting it into the address bar of your browser. (The node ID number - 100 - will differ for you).
Next, return to Edit the page from step 1.
Under the URL Alias section on the right-hand side, check the Generate automatic URL alias box.
Save the page - compare the results.
Check if the internal path (such as node/100) still works.
Check if the manually entered URL alias from step 2 is still functional.
Ask your trainer any questions.