Hello guys, I am in a need of a safest and easiest way to make my site offline. My site works on a custom script which is a online test taker. I am planning a quiz test on next sunday. i have already created paper under this script but for preventing of any hacking attempt I want to keep my site off untill saturday. Is there any safest way so that I can redirect or show "offline message"? Waiting for your reply! Regards, Adwaitk007
Just edit index page.and let them know that your website is offline.You can get cool templates about offline website...and time which shows how much is left before your site will go online.
I would agree with swapping index page. However, it's not that safe and keep in mind the errors it can cause depending on what CMS or coding you've used in the website. Sometimes editing out the index.php, not only require manual file edit, it might cause parse errors or othe rpages dpeending on the index might not work all together. Search Engines might not like it as well and site's rank could be affected. Does your online test taker script come with an option to go into maintenance mode or locking mode? Can you edit the welcome or index page texts through a control panel and say it's locked or off temp until xx date/time? Can you send notice to current registered test takers regarding it in a newsletter format or something? If you do, send notice and use those. If not, send notice and one of the safest ways, IMO, is to 1. Create a simple notice page stating when the quiz be available again. 2. Edit template header file (usually) or main template file to redirect to the page created at Step 1. (Search Engine indexing might see this differently).
Better Redirect all the request coming to your site to a particular page. It can be done by using url rewrite.
Not sure if you actually want to use the site yourself before it goes live? If not, why not just temporarily rename the folder it is in to another name (via FTP or Cpanel?) - maybe a password type one? Then change the name back when you want it to go live?
how about back it all up and delete it's online copy until you are finish with what would you like to do