Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine on
- RewriteCond %{HTTP:X-Forwarded-Proto} !https
- RewriteCond %{HTTPS} off
- RewriteRule ^/api$ http://127.0.0.1:8888/ [P,L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^/api/(.*)$ http://127.0.0.1:8888/$1 [P,L]
- RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
- RewriteCond %{REQUEST_FILENAME} -s [OR]
- RewriteCond %{REQUEST_FILENAME} -l [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^.*$ - [NC,L]
- RewriteRule ^(.*) /index.html [NC,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement