Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine On
- RewriteBase /
- RewriteCond %{REQUEST_FILENAME} -s [OR]
- RewriteCond %{REQUEST_FILENAME} -l [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^.*$ - [NC,L]
- RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::2$
- RewriteRule ^(.*) - [E=BASE:%1]
- RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
- RewriteEngine On
- RewriteBase /
- RewriteRule ^ index .html $ - [L]
- RewriteCond% {REQUEST_FILENAME}! -f
- RewriteCond% {REQUEST_FILENAME}! -d
- RewriteRule. / Index.html [L]
- /api/index.php
- RewriteEngine On
- # Handle API Requests
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_URI} ^/api/
- RewriteRule ^ /api/index.php [L]
- ## pure angular routes
- RewriteBase /
- RewriteRule ^index.html$ - [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /index.html [L]
Add Comment
Please, Sign In to add comment