Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. RewriteEngine on
  2. RewriteCond %{HTTP:X-Forwarded-Proto} !https
  3. RewriteCond %{HTTPS} off
  4.  
  5. RewriteRule ^/api$ http://127.0.0.1:8888/ [P,L]
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule ^/api/(.*)$ http://127.0.0.1:8888/$1 [P,L]
  9.  
  10.  
  11. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
  12. RewriteCond %{REQUEST_FILENAME} -s [OR]
  13. RewriteCond %{REQUEST_FILENAME} -l [OR]
  14. RewriteCond %{REQUEST_FILENAME} -d
  15. RewriteRule ^.*$ - [NC,L]
  16. RewriteRule ^(.*) /index.html [NC,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement