How to redirect all pages only to index.html using htaccess file and not redirect the image files
snippet in htaccess

How to redirect all pages only to index.html using htaccess file and not redirect the image files

user7030

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/index.html$
RewriteCond %{REQUEST_URI} !\.(gif|jpe?g|png|css|js)$
RewriteRule .* /index.html [L,R=302]

How to redirect all pages only to index.html using htaccess file and not redirect the image files

user2003

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/index.html$
RewriteRule .*\.(php|html)$ /index.html [L,R=302]

How to redirect all pages only to index.html using htaccess file and not redirect the image files

user766

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* / [L,R=302]