Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine On
- #RewriteBase /xibo-cms/web
- # fix authorization header
- RewriteCond %{HTTP:Authorization} .+
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
- # requests for api authorize
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_URI} ^.*/authorize/.*$
- RewriteRule ^ api/authorize/index.php [QSA,L]
- # requests that start with api go down to api/index.php
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_URI} ^.*/api/.*$
- RewriteRule ^ api/index.php [QSA,L]
- # install
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_URI} ^.*/install/.*$
- RewriteRule ^ install/index.php [QSA,L]
- # maintenance
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_URI} ^.*/maint/.*$
- RewriteRule ^ maint/index.php [QSA,L]
- # all others - i.e. web
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^ index.php [QSA,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement