Main Menu

a little help

Started by itsjustme, August 26, 2006, 03:04:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

itsjustme

Hi,

I need to do something that I need help on.

A member of our forum passed away this week.  A sad story.

I want to "shut down" the web site for a few minutes on the day of the memorial service.  I got about a week to get this ready.  I am thinking I would do one of the following...

black it out completely

have all pages direct to a single simple memorial page I would create

create a slideshow to run during this time


I want to have this "blackout" happen for 5 minutes or so...

what would be the best way to do this, where only one page would be available?


I have created a memorial page that uses ssi to feed the comments.   this page is still being worked on.   here

I may use that page, if I get it spruced up a bit.

Thanks in advance,

Dave


Mark

Sorry to hear about your loss. :(

Does your entire website use SMF's SSI features, the PHP version that is? If so, then all you would need to to do is put your forum into maintenance mode (SSI will catch it and put all the pages in maintenance mode), in which you can customize the message however you want. However, in the message you will probably have to provide a link to that memorial page and tell them to go to it as you can't add a redirect.

If your website doesn't already use SSI, it would probably be the quickest way to "shut down" your website if you where to at least add the <?php require... line to the top of all your PHP pages.

itsjustme

thanks.  SSI on most pages.

I was hoping for a way to do this easier.  i could delete the main entrance pages, mostly smf and the home page index, and put the memorial page up renamed for each entry page.  Then I could just upload the normal index pages at the end of the "blackout".  Thoughts?

Thanks so much,

Dave

Jason

You should be able to setup redirection through your .htaccess file so that every page viewed immediately loads the memorial page.  Then you could just edit that line out once you wanted things back to normal.

itsjustme

Quote from: Jason on August 27, 2006, 03:31:08 PM
You should be able to setup redirection through your .htaccess file so that every page viewed immediately loads the memorial page.  Then you could just edit that line out once you wanted things back to normal.

oh that would be the cool geeky way.  Sounds like what I want.  What's a htaccess?

Kidding, sortof, just never did anything with that yet.  Good time to learn.  The event will take place on September 3rd.

Dave

Mark

#5
In all (or most) of your directories there is what is called a .htaccess file. Basically it's a file that you can use to affect the way your website functions (I think that's how it goes). Anyway, you can do anything from blocking out IP address' to a simple redirection (which I didn't think of! Duh! :P).

Basically, create a file named .htaccess, then put this line, and only this line, in the file.

Redirect /olddirectory /newdirectory/or_file.html

/olddirectory - this could be your forum directory

/newdirectory/or_file.html - this would be your memorial file that you would direct your visitors.

This should work, but I've never tried redirects so I'm not 100% sure exactly the way it written up.


EDIT: If all else fails, you could try searching ;)

itsjustme

#6
I am wondering this...

I may just temporarily rename the forum folder, and make a seperated index page for the home page.

All  I would have to do then is either make the error page re-direct to the index page, or list a link on the index page.

Any help on making the error page go right to the index page?

Thanks...

Dave

itsjustme

Well it went pretty well.

I changed the 404 error page to a notice about the tribute with a link to the video.

I downloaded and saved the index files for the home page and the forum home page, then deleted them.

I think it went pretty well, except I was about 10 min late doing it.


Dave

Jason

Cool, good to hear it went well.

In the future, the htaccess route should be much easier.  It should take all requests for any page on your account and reroute them to wherever you choose.

(Sorry for the delay -- I got your post via blackberry but I was in the mtns and didn't have 'Net access)

-Jason