I have a static web page that I need to turn off, I don’t want to delete the file though because there is a good chance I will need to turn it back on in the future. How can I do this?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the page you are wanting to temporarily ‘hide’ is a php page, you could do something like this at the top of that php file you want to ‘hide’.
Just replace the url after
Location:to a placeholder page of your choosing.There are other HTTP header tricks you could do, like returning a 404, 503, etc.
http://phpweby.com/tutorials/php/35
You could also use the .htaccess trick suggested by @andrew-g-johnson, using the .htaccess file shouldn’t have much of an impact performance wise, especially compared to doing it inside PHP.