@@ -77,20 +77,34 @@ Header always set X-Content-Type-Options "nosniff"
77
77
# RewriteBase /
78
78
79
79
## Begin - Joomla! core SEF Section.
80
- #
81
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
82
- #
83
- # If the requested path and file is not /index.php and the request
84
- # has not already been internally rewritten to the index.php script
85
- RewriteCond %{REQUEST_URI} !^/index\.php
86
- # and the requested path and file doesn't directly match a physical file
87
- RewriteCond %{REQUEST_FILENAME} !-f
88
- # and the requested path and file doesn't directly match a physical folder
89
- RewriteCond %{REQUEST_FILENAME} !-d
90
- # internally rewrite the request to the index.php script
91
- RewriteRule .* index.php [L]
92
- #
93
- ## End - Joomla! core SEF Section.
80
+ #
81
+ # PHP FastCGI fix for HTTP Authorization, required for the API application
82
+ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
83
+ # -- SEF URLs for the API application
84
+ # If the requested path starts with /api, the file is not /api/index.php
85
+ # and the request has not already been internally rewritten to the
86
+ # api/index.php script
87
+ RewriteCond %{REQUEST_URI} ^/api/
88
+ RewriteCond %{REQUEST_URI} !^/api/index\.php
89
+ # and the requested path and file doesn't directly match a physical file
90
+ RewriteCond %{REQUEST_FILENAME} !-f
91
+ # and the requested path and file doesn't directly match a physical folder
92
+ RewriteCond %{REQUEST_FILENAME} !-d
93
+ # internally rewrite the request to the /api/index.php script
94
+ RewriteRule .* api/index.php [L]
95
+ # -- SEF URLs for the public frontend application
96
+ # If the requested path and file is not /index.php and the request
97
+ # has not already been internally rewritten to the index.php script
98
+ RewriteCond %{REQUEST_URI} !^/index\.php
99
+ # and the requested path and file doesn't directly match a physical file
100
+ RewriteCond %{REQUEST_FILENAME} !-f
101
+ # and the requested path and file doesn't directly match a physical folder
102
+ RewriteCond %{REQUEST_FILENAME} !-d
103
+ # internally rewrite the request to the index.php script
104
+ RewriteRule .* index.php [L]
105
+ #
106
+ ## End - Joomla! core SEF Section.
107
+
94
108
</IfModule>
95
109
96
110
## These directives are only enabled if the Apache mod_rewrite module is disabled
0 commit comments