-
Notifications
You must be signed in to change notification settings - Fork 607
Nginx rewrite rule in documentation is incorrect #665
Copy link
Copy link
Open
Labels
Description
The currently given rule in the example config is:
location ~ ^/((config|content|vendor|composer\.(json|lock|phar))(/|$)|(.+/)?\.(?!well-known(/|$))) {
try_files /index.php$is_args$args =404;
}
As was mentioned before in #572 (which was closed while unresolved) this doesn't work. The rule should instead be something like this:
location ~ ^/(config|content|vendor|composer) {
rewrite /(.*)$ /index.php?$1;
}
That will redirect any requests to those directories or their contents to instead be handled by Pico as content paths
Reactions are currently unavailable