Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to reproduce:
- Install and enable Pathauto;
- Create a node with title "Administrative requirements", set "Generate automatic URL alias";
- Try to access your node by aliased path anonymously (
/administrative-requirements
by default).
I found that Drupal is bootstrapped with empty ?q=
. Everything works fine when node is accessed by /node/[nid]
path, or after manually changing the first part of node's alias.
Please help me to find out which part of Nginx configuration could be responsible.
Comments
Comment #1
omega8cc CreditAttribution: omega8cc commentedThe /admin* URI/path is *reserved* by design for site admin access and you should never use it for anything else.
Comment #2
tema CreditAttribution: tema commentedBut why
/admin*
, not/admin/*
? Can we consider this as a prohibition of non-prefixed aliases?How does it work? All I found is only anti-bot 403 rules, but not redirect.
Comment #3
omega8cc CreditAttribution: omega8cc commentedBecause
/admin
also belongs to admin area and we will not add extra complicated wildcard locations just to allow bad practices like /adminfoo while protecting /admin and /admin/*. See also many duplicates and the docs: #2093163: Anonymous redirected to front page when reaching /adminComment #4
tema CreditAttribution: tema commentedThank you. My fault, I had to use the search better.