Drupal allows you to further customize your website by setting up search engine optimized URLs called aliases. In this tutorial, we’ll explain further what URL aliases are and how you can use them in your Drupal 7 website.
What are URL Aliases
URL aliases allow you to provide a more understandable URL to content such as pages and articles in Drupal. On our site, since we have not set up an alias for “Our test page” it’s actual URL is “node/5”. URL aliases allow us to customize the URL with a more meaningful URL so we can actually change the URL from “node/5” to “our_test_page”. So let’s take a look at an example:
Before | After |
---|---|
drupal.inmotiontesting.com/node/5 | drupal.inmotiontesting.com/out_test_page |
How to enable URL Aliases in Drupal 7
- Log into the Drupal dashboard
- Go to Configuration >> Search and Meta Data >> URL Aliases
- Click Add alias
- Fill in the Existing system path and the Path alias
- Click Save
For more step-by-step guides and practical tips, visit our Drupal Education Channel.