What is a URL Alias in Drupal?
Drupal provides a module to manually set URL aliases. This allows for the creation user-friendly, readable URLs instead of the default system-generated URLs that contain node IDs (e.g., /node/123). URL aliases improve SEO, enhance usability, and make URLs more meaningful for visitors.
How to Use URL Aliases in the Structure Module
Creating a Manual URL Alias
- Navigate to Configuration → Search and Metadata → URL Aliases.
- Select Add Alias.
- Fill in the required fields:
- System Path: Enter the original Drupal-generated path (e.g., /node/123).
- URL Alias: Enter a more readable alias (e.g., /about-us).
- Select Save to apply the alias.
Editing or Deleting URL Aliases
- Navigate to Configuration → Search and Metadata → URL Aliases.
- Find the alias you want to modify.
- Select Edit to change the alias, or Delete to remove it.
Tips for Using URL Aliases
- SEO-Friendly URLs: Keep aliases short and descriptive (avoid special characters).
- Avoid Duplicates: Ensure each alias is unique to prevent conflicts.
