Advertisement
dmroger

.htaccess

Feb 20th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. RewriteEngine On
  2.  
  3. #RewriteBase /xibo-cms/web
  4.  
  5. # fix authorization header
  6. RewriteCond %{HTTP:Authorization} .+
  7. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  8.  
  9. # requests for api authorize
  10. RewriteCond %{REQUEST_FILENAME} !-f
  11. RewriteCond %{REQUEST_URI} ^.*/authorize/.*$
  12. RewriteRule ^ api/authorize/index.php [QSA,L]
  13.  
  14. # requests that start with api go down to api/index.php
  15. RewriteCond %{REQUEST_FILENAME} !-f
  16. RewriteCond %{REQUEST_URI} ^.*/api/.*$
  17. RewriteRule ^ api/index.php [QSA,L]
  18.  
  19. # install
  20. RewriteCond %{REQUEST_FILENAME} !-f
  21. RewriteCond %{REQUEST_URI} ^.*/install/.*$
  22. RewriteRule ^ install/index.php [QSA,L]
  23.  
  24. # maintenance
  25. RewriteCond %{REQUEST_FILENAME} !-f
  26. RewriteCond %{REQUEST_URI} ^.*/maint/.*$
  27. RewriteRule ^ maint/index.php [QSA,L]
  28.  
  29. # all others - i.e. web
  30. RewriteCond %{REQUEST_FILENAME} !-f
  31. RewriteRule ^ index.php [QSA,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement