Does anybody know of a method, plugin or other solution to set up wildcard redirects for Drupal 8? I know the Match Redirect module - but it hasn't been ported to D8 yet. I have quite a few taxonomy terms that are for backend use only - I've used pathauto to alias them all to redirect/[term:name] ... hoping I could then do a redirect to the home page, like so: /redirect/*

Or is there another way I could do this? (aside from .htaccess redirect?) I guess it's just morbid curiosity now.

Comments

hawkeye.twolf’s picture

The Redirect module has an issue for this: #2831605: Support for wildcards

You can also handle it in settings.php; see this documentation from Pantheon: Redirect for SEO and Security Contribute.

Hawkeye Tenderwolf
a Senior Developer
at Lullabot

megan_m’s picture

Try Rabbit Hole module. It can be used for any entity pages that you don't want users to be able to access.

Woolwich Web Works: Custom web development