Our FamilyForum

FamilyForum Documentation & Help => FamilyForum Features & Guidelines => Forum Features => Topic started by: Ken on April 13, 2010, 08:16:45 PM

Title: Our Spiffy new 404 Error Pages
Post by: Ken on April 13, 2010, 08:16:45 PM
We've added a nifty new 404 error page to replace the old 'default' page that you would normally see if you reached the 'Not Found' page here on the FamilyForum.

You can take a look here:
http://www.ourfamilyforum.org/FamilyForum/index.php?page=208 (http://www.ourfamilyforum.org/FamilyForum/index.php?page=208)
Title: Re: Our Spiffy new 404 Error Pages
Post by: Skhilled on April 14, 2010, 08:22:53 AM
Nice! I've been meaning to do something like this for about 5 years now. LOL

BTW, you've missing a capital "I" in the first line. ;)
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on April 14, 2010, 09:06:20 AM
Fixed.  :08:

You can find the code for doing the page here:
http://www.tinyportal.net/index.php?topic=32422.0 (http://www.tinyportal.net/index.php?topic=32422.0)
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 13, 2016, 01:22:06 PM
I guess it pays to check these things from time to time... at some point during various SMF upgrades the codes in .htaccess file got dumped, so our custom page was not working.  shocked003

Fixed now.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Skhilled on July 14, 2016, 08:22:08 AM
And I still haven't made mine yet! LMAO!!!
Title: Re: Our Spiffy new 404 Error Pages
Post by: Skhilled on July 15, 2016, 06:46:05 AM
I'm not sure what you did wrong but right after I log in I get the 404 page. I click "Forum" and then I can view everything.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 15, 2016, 08:00:57 AM
I'm not sure what you did wrong but right after I log in I get the 404 page. I click "Forum" and then I can view everything.

Not able to make it do that here Steve.

I tried both Chrome and Edge using the member 'Mia' to login/logout and it seemed to work OK.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Skhilled on July 15, 2016, 08:42:38 AM
I'm using FF..maybe that's it.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 15, 2016, 10:24:58 AM
Should have mentioned that I use FF as well. :)
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 15, 2016, 12:42:42 PM
Ahhh!

Just happened to me with FF!  shocked003

Need to sort through the code to see what's causing the 404 error page to display.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Skhilled on July 15, 2016, 09:41:34 PM
It didn't do it to me this time when I just logged in. It only seems to do it sometimes for some odd reason. I've been cooking and playing games all day...after sleeping. LOL I'll try to get into this with my site or a test site. Hmmm, maybe a test site will be best then I can see if there is a diff from this site like a mod that may be causing it or some extra coding.

EDIT: After I setup the test site, I'll give you access so you can see if there's any differences.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 16, 2016, 03:40:32 AM
OK... good deal.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Skhilled on July 16, 2016, 07:51:48 AM
Here's the link and I've already PM'd you account details with admin access.:

http://docskillz.com/test404

Registration is set to Admin Approval - for those of you who wish to join. I'll grant access.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 16, 2016, 08:25:38 AM
Getting into the setup now.

How do you want to make the error page? With a TP article, or just a stand alone html page, or what?

Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 16, 2016, 08:54:30 AM
OK, gots an html page in place.
... go ahead and delete it if you don't like using html pages like this.

http://docskillz.com/test404/ds404.htm
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 16, 2016, 09:15:50 AM
Steve, you have lots of good stuff in your .htaccess file and I do not want to take a chance on screwing anything up! So I'll leave it to you to add the 404 error call in the file.  :hah!:
Title: Re: Our Spiffy new 404 Error Pages
Post by: Skhilled on July 16, 2016, 10:27:57 AM
You can just add it at the end of it...or the beginning if you have to. Trust me...R1Soft is amazing! Check it out! ;)

No matter how hard you can try to screw things up, just a couple of click will restore it up to 7 days ago. It used to be at least a few months and the hosting can set it up as they wish.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 16, 2016, 11:30:19 AM
I'm not liking the 404 page so far... not using a TP Article means that the top navigation bar (or facsimile) must be manually.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Skhilled on July 16, 2016, 07:20:01 PM
You can install TP if you need it...or whatever you want.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Skhilled on July 16, 2016, 10:04:18 PM
Steve, you have lots of good stuff in your .htaccess file and I do not want to take a chance on screwing anything up! So I'll leave it to you to add the 404 error call in the file.  :hah!:

If you use a .htaccess in the main folder or a particular forum's folder it should work. I.E., putting it in http://docskillz.com/test404

Getting into the setup now.

How do you want to make the error page? With a TP article, or just a stand alone html page, or what?



Hmmm, just noticed this and missed it earlier... Do it the same as here, a TP article right?
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 17, 2016, 04:41:34 AM
The way your server and mine are setup is a little different, but my understanding of the .htaccess file location that we need to use is this; while there are several of the .htaccess files scattered throughout SMF the one for us to use is in the root(?) folder as seen in the two screen shots attached.

I'll go ahead and install the latest public release of TP and make the article this morning.
Title: Re: Our Spiffy new 404 Error Pages
Post by: Ken on July 17, 2016, 05:12:30 AM
Posting to get a tinypic link for the 404 image.

(https://www.ourfamilyforum.org/FamilyForum/proxy.php?request=http%3A%2F%2Fi66.tinypic.com%2Ft69va1.jpg&hash=784b21899b29c894c6f7be1a3b8d315023b5beca)
Title: Re: Our Spiffy new 404 Error Pages
Post by: Skhilled on July 17, 2016, 06:19:07 AM
As far as I know, you should use the .htaccess file that is in the root folder of the forum you wish to use it on. That is, unless you wish to make it global (for site you have) then it should go in the /public_html folder. Sorry, I was very busy yesterday.