htaccess redirect to index.html


/ Published in: Apache
Save to your folder(s)

le't say we put our project in "dir" folder


Copy this code and paste it in your HTML
  1. RewriteEngine on
  2. RewriteCond %{REQUEST_FILENAME} !-f
  3. RewriteCond %{REQUEST_FILENAME} !-d
  4. RewriteRule ^([^?]*)$ /dir/index.html [NC,L,QSA]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.