francescogregori / friendly_url_only
Displays page 404 for all nodes that do not have a path set with pathauto. Example: 'node / 1' return 404 page
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:drupal-module
Requires
- drupal/pathauto: ^1.8
This package is auto-updated.
Last update: 2024-09-13 19:14:16 UTC
README
Friendly url only is a module that allows you to deny access to all nodes that do not have an alias path set.
Installation
Use composer to install friendly_url_only.
composer require francescogregori/friendly_url_only
Usage
Enable the friendly_url_only module and check that you have also activated pathauto. Now all nodes with url 'node / x' will be automatically redirected to page 404. Set alias URL with pathauto.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.