d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > How To Display "under Maintenance"
Prev123Next
Add Reply New Topic New Poll
Member
Posts: 29,723
Joined: Jun 11 2007
Gold: 279.52
Jul 2 2012 07:03pm
<script type="text/javascript">
window.location='yourfilename.exentsion'
</script>


just put that at the top of your page

and change the yourfilename.extension part to w/e your page is that says "under maintenance"
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Jul 3 2012 03:38am
Quote (AkuuZ @ 3 Jul 2012 03:03)
<script type="text/javascript">
window.location='yourfilename.exentsion'
</script>


just put that at the top of your page

and change the yourfilename.extension part to w/e your page is that says "under maintenance"


what if the user doenst have fucking javascript on? worst solution ever.
Quote (nickhuh @ 2 Jul 2012 20:15)
where would i put the coding to display the "under maintenance" page when i load up my website.

sorry i am a noob at web language.

i know its in my root directory of my website but im not sure which file to put it in.

i have the .html file that would display "this site is currently under going maintenance" but i do not have the script nor the knowledge on where to place the script.

any help would be appreciated.

thank you very much (:

inside your index.php above <head> write <?php include('maintenance.html'); die(); ?>

This post was edited by eagl3s1ght on Jul 3 2012 03:38am
Member
Posts: 20,464
Joined: Dec 31 2006
Gold: 131.00
Jul 3 2012 05:11am
default godaddy page, is your domain pointed to your servers?


This post was edited by WhyteLinux on Jul 3 2012 05:13am
Member
Posts: 336
Joined: Feb 12 2009
Gold: 98.00
Jul 3 2012 06:48am
Quote (eagl3s1ght @ Jul 3 2012 04:38am)
what if the user doenst have fucking javascript on? worst solution ever.
inside your index.php above <head> write <?php include('maintenance.html'); die(); ?>


will try this. feedback coming soon.

Quote (WhyteLinux @ Jul 3 2012 06:11am)
default godaddy page, is your domain pointed to your servers?


yes my domain is pointed at my server
Member
Posts: 336
Joined: Feb 12 2009
Gold: 98.00
Jul 3 2012 06:56am
Quote (eagl3s1ght @ Jul 3 2012 04:38am)
what if the user doenst have fucking javascript on? worst solution ever.
inside your index.php above <head> write <?php include('maintenance.html'); die(); ?>


hmm it is still showing a parked page.
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Jul 3 2012 07:12am
Quote (nickhuh @ 3 Jul 2012 14:56)
hmm it is still showing a parked page.


So do you actually have a website working on your domain? You need to go on your web hotel configuration panel and point the domain you have to your FTP.
Is it that FUCKING hard to read the FAQ on setting up a website?

This post was edited by eagl3s1ght on Jul 3 2012 07:13am
Member
Posts: 336
Joined: Feb 12 2009
Gold: 98.00
Jul 3 2012 07:27am
Quote (eagl3s1ght @ Jul 3 2012 08:12am)
So do you actually have a website working on your domain? You need to go on your web hotel configuration panel and point the domain you have to your FTP.
Is it that FUCKING hard to read the FAQ on setting up a website?


my domain has been pointing to my ftp..
and my website is already set up i just made some changes and it is under propagation so i just wanted to know how to put up the under maintenance page.
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Jul 3 2012 09:25am
Quote (nickhuh @ 3 Jul 2012 15:27)
my domain has been pointing to my ftp..
and my website is already set up i just made some changes and it is under propagation so i just wanted to know how to put up the under maintenance page.


Then there should be no problem adding the line I told you. Which is the file presented when you go on your domain?
Member
Posts: 336
Joined: Feb 12 2009
Gold: 98.00
Jul 3 2012 09:39am
Quote (eagl3s1ght @ Jul 3 2012 10:25am)
Then there should be no problem adding the line I told you. Which is the file presented when you go on your domain?


it shows a parked page from godaddy asking if i want to buy this domain
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Jul 3 2012 09:45am
Quote (nickhuh @ 3 Jul 2012 17:39)
it shows a parked page from godaddy asking if i want to buy this domain


Without my code ? (the one below) :blink:
Code
<head> write <?php include('maintenance.html'); die(); ?>


Go Back To Programming & Development Topic List
Prev123Next
Add Reply New Topic New Poll