Search engine optimization, SEO, is always welcome to broaden your website's reach. There are 2 Drupal modules that are SEO-friendly.
- Pathauto automatically converts your URL paths using aliases such as node title, taxonomy terms, etc.
So, for example, instead of showing URL path
/node/1, it will show something like
/article/my-post-title. It is human readable and SEO-friendly.
- Redirect will ensure that when your aliases change, Drupal will still load the page
/node/1. It also notifies search engine that the page is permanently moved with HTTP status code 301. Without this module, users will get 404 - page not found error.
Create Pathauto patterns
- Go to
Configuration->URL aliases. Click on Patterns tab.
- Click on the Add Pathauto pattern button.
- Select Content from Pattern type and enter article/[node:title] into Path pattern. If you want to see the available patterns, click on Browse available tokens .
- Check Article from Content type.
- Enter a name for this pattern in Label.
If you already have a bunch of existing articles and want to generate aliases for them, then click on the Bulk generate tab. First, select which entity type you want to mass generate, e.g. Content. Then select which URL aliases to generate.
No setting to do. By default, Redirect is set to automatically create redirects when URL aliases are changed.