×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Apache
Posted by: Nilesh Yadav
Added: Jun 9, 2017 7:32 AM
Views: 9
Tags: no tags
  1. RewriteEngine on
  2. #RewriteCond %{REQUEST_FILENAME} -s [OR]
  3. #RewriteCond %{REQUEST_FILENAME} -l [OR]
  4. #RewriteCond %{REQUEST_FILENAME} -d
  5. #RewriteRule ^.*$ - [NC,L]
  6. #RewriteRule ^(.*) /index.html [NC,L]
  7.  
  8. RewriteCond %{REQUEST_FILENAME} !-f
  9. RewriteCond %{REQUEST_FILENAME} !-d
  10. RewriteCond %{REQUEST_URI} !^/api [NC]
  11. RewriteCond %{REQUEST_URI} !index
  12. RewriteRule (.*) index.html [L]