diff --git a/config/nginx.rewrite.rules b/config/nginx.rewrite.rules index d505d2f4e3..3914c414d0 100644 --- a/config/nginx.rewrite.rules +++ b/config/nginx.rewrite.rules @@ -42,6 +42,7 @@ rewrite ^/prod/share/.*$ /index.php last; rewrite ^/user/preferences/.*$ /index.php last; rewrite ^/user/notifications/.*$ /index.php last; +rewrite ^/download/.*$ /index.php last; rewrite ^/api/v1/.*$ /api/v1/index.php last; rewrite ^/api/oauthv2/.*$ /api/oauthv2/index.php last; diff --git a/www/.htaccess b/www/.htaccess index dd01f68c8b..ba23c3da98 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -43,6 +43,8 @@ RewriteRule ^user/preferences/.*$ /index.php [L] RewriteRule ^user/notifications/.*$ /index.php [L] + RewriteRule ^download/.*$ /index.php [L] + RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^api/v1/.*$ /api/v1/index.php [L] RewriteCond %{REQUEST_FILENAME} !-f