diff --git a/api/.htaccess b/api/.htaccess index e73e2eb3b9c3f1204223b4426274817c0200e279..f460420d6d2f55f362fb420788b6751afe38bbba 100644 --- a/api/.htaccess +++ b/api/.htaccess @@ -1,8 +1,11 @@ -RewriteEngine On +<IfModule mod_rewrite.c> -RewriteBase /api/ +RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_URI} (.*/api) + +RewriteRule ^(.*)$ %1/http.php/$1 [L] -RewriteRule ^(.*)$ http.php/$1 [L] +</IfModule>