.htaccess - How to redirect all pages only to index.html using htaccess file and not redirect the image files -
how redirect pages (pages only) index.html using htaccess file , not redirect image files. reason using code , image file on index.html page isn't showing up.
rewriteengine on rewritecond %{request_uri} !^/index.html$ rewriterule .* /index.html [l,r=302]
try code :
rewriteengine on rewritecond %{request_uri} !^/index.html$ rewritecond %{request_uri} !\.(gif|jpe?g|png|css|js)$ rewriterule .* /index.html [l,r=302]
Comments
Post a Comment