You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Herd manages the Nginx configuration automatically and does not provide a way for users to adjust directives such as try_files.
For several frameworks and CMSs (e.g., WordPress, Drupal, Laravel, custom PHP apps), it is often necessary to route requests through a front controller (index.php) when files or directories do not exist. This is typically achieved with the following directive: try_files $uri $uri/ /index.php?q=$uri&$args;
Without the ability to modify this, developers may run into issues where URLs that should be handled by the application return 404 errors, since the request never falls back to index.php.
Example Use Case
A developer working on a Drupal site sets up a Herd environment. Drupal requires: try_files $uri $uri/ /index.php?q=$uri&$args;
Without the ability to configure this, every path like /node/1 or /about will return a 404, making local development impractical.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, Herd manages the Nginx configuration automatically and does not provide a way for users to adjust directives such as try_files.
For several frameworks and CMSs (e.g., WordPress, Drupal, Laravel, custom PHP apps), it is often necessary to route requests through a front controller (index.php) when files or directories do not exist. This is typically achieved with the following directive:
try_files $uri $uri/ /index.php?q=$uri&$args;
Without the ability to modify this, developers may run into issues where URLs that should be handled by the application return 404 errors, since the request never falls back to index.php.
Example Use Case
A developer working on a Drupal site sets up a Herd environment. Drupal requires:
try_files $uri $uri/ /index.php?q=$uri&$args;
Without the ability to configure this, every path like /node/1 or /about will return a 404, making local development impractical.
Beta Was this translation helpful? Give feedback.
All reactions