fix rewrite when we can use try_files
parent
9602a666a6
commit
5d2b72c1f6
|
@ -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'] = '';
|
||||||
|
|
Loading…
Reference in New Issue