: Redirect all traffic to construction page except my IP in .htaccess The title pretty much says it all. I want to direct all traffic to an under construction page except for traffic originating
The title pretty much says it all.
I want to direct all traffic to an under construction page except for traffic originating from my IP address so I can move a large development site into production and tweak a few things along the way.
Any way to do this in .htaccess?
Thanks.
More posts by @Hamaas447
2 Comments
Sorted by latest first Latest Oldest Best
in .htaccess, i am nt sure bt with php u can do this...
Create index.php using following code
<?php
header ("Location:./under-construction/");
?>
keep this index.php file in public_html folder and your users will directly redirected to under construction page and u can check ur work directly entering ur page for exampale: xyz.com/demo/ or if your real page file(index.php) and should be located in same folder public_html than rename ur real page name frm index.php to demo.html for a while...
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.