fix rewrite when we can use try_files

pull/146/head
Alexandre Dias 2020-06-16 15:41:20 +01:00
parent 9602a666a6
commit 5d2b72c1f6
1 changed files with 1 additions and 5 deletions

View File

@ -35,11 +35,7 @@ export default global => {
config['# Drupal: allow image styles to be handled by the CMS'] = ''; config['# Drupal: allow image styles to be handled by the CMS'] = '';
config['location ~ ^/sites/[^/]+/files/styles/'] = { config['location ~ ^/sites/[^/]+/files/styles/'] = {
try_files: '$uri @rewrite', try_files: '$uri /index.php?q=$uri&$args;',
};
config['location @rewrite'] = {
rewrite: '^/(.*)$ /index.php?q=$1',
}; };
config['# Drupal: handle private files'] = ''; config['# Drupal: handle private files'] = '';