Issue :

While some construction is going on the site, all pages on the website should go to the index page.

Solution :

This can be easily achieved by using the following code in your .htaccess file :

< IfModule mod_rewrite.c >
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
< /IfModule >


Shares
Contact Us On WhatsApp