Welcome, Guest. Please login or register.

ShoutBox!

 

Skhilled

2024-08-09, 18:19:29
Awww! Poor thing! LOL
 

Ken

2024-08-09, 09:20:52
 

Skhilled

2024-07-06, 10:33:18
 :D
 

Ken

2024-07-06, 06:40:47
Happy Saturday after the 4th of July!
 :fireworks:
 

Skhilled

2024-07-04, 20:27:02
Happy Day Off From Work!  :D
 

Ken

2024-06-25, 06:23:12
84... who knew?  laughing7
...2013 was my *magic* year
 

Skhilled

2024-06-14, 22:09:12
I hope so! LOL
 

Ken

2024-06-14, 21:41:30
My B-Day is forthcoming and maybe it will be far enough along so that I can be a regular Dancing Fool for that day!!! :banana: :2funny:
 

Ken

2024-06-14, 21:38:38
Happy Friday everyone! I'm  SOOO glad to see Friday and not just because it's the weekend, but because it marks one more day in the recovery of my foot!  laughing7

Scrubmeister

2024-04-19, 10:32:40
Good to see the site back faster than ever. :)

Recent Topics

TP Articles


Search in titles
Search in article texts

Author Topic: [How-To] Using a TinyPortal Article for your 404 Error Page!  (Read 3577 times)

0 Members and 1 Guest are viewing this topic.

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11942
  • Gender: Male
  • View Gallery
[How-To] Using a TinyPortal Article for your 404 Error Page!
« on: February 12, 2014, 12:44:53 PM »
... this post is an 'in progress' topic and it will be posted over on tinyportal.net when it's finished.
Comments and suggestions are welcome.  :thumbup:

This has been posted to tinyportal.net
--------------------------------------------------------------------
 


This is a short and simple two step how-to for using your TinyPortal Article system to set up a custom 404 error page. As we all know the default 404 error pages are rather bland and boring so when Mick posted his '[Tip] Create a 404 Not Found Page' back in 2010 I was all over it and made a nice little page for my site and was well pleased with it.
As Mick said in his post:
Quote
Your visitors may stumble into a 404 "Not found" page on your website for a variety of reasons:

    * A mistyped URL, or a copy-and-paste mistake
    * Broken or truncated links on web pages or in an email message
    * Moved or deleted content

Confronted by a 404 page, they may then attempt to manually correct the URL, click the back button, or even navigate away from your site.

This code will actually show your forum and let them know that your forum does exists and make them to at least try again.
Then fast forward to this January when my site was reopened after it being off line for all of 2013. That's when it was discovered that my 404 error page no longer worked. So after some research this is what I came up with.

Please note that while this worked well for me, care should be taken to do backups of your database and the files involved in case you have a problem of some kind.
... be sure to use the information below for help in editing files.


1/ First, make an article with the content that you would like to be displayed whenever someone pulls up a 404 error page on your site.
... this is how my current article looks;  (you can see the full page HERE.)


2/ Next in your sites public html folder look for the '.htaccess' file.
... backup, backup, backup.  :)  (see the link below)
Adjust the code below to fit your new 404 error article and add the resulting code to the end of your .htaccess file.
Code: [Select]
ErrorDocument 404 /yourforumname/index.php?page=yourarticlepagenumber
Now you can test your newly installed 404 error page by entering a broken address for your forum into your browser.
For mine it looks like this:
http://www.ourfamilyforum.org/FamilyForum/index.php  ... my forums address.
http://www.ourfamilyforum.org/FamilyFor   ... broken address that will take you to my 404 error page.

-----------------------------------------------
-----------------------------------------------

Useful Links:

1/ Google Product Forums › Webmaster Central › ... in this topic 'ets' gave me some spot on help is sorting out the code for my :htaccess file.

2/ Need an FTP file utility? My favorite is FileZilla.
If you do not have a FTP program (or don't know how to use one) you use your hosting's control panel (such as File Manager in your cPanel) to download and upload the file. You can even use it to directly edit the file, if needed... be very cautious when using this method!

3/ Any time you do anything to your forum there is one thing that you should make part of your routine, like:

Backup... Backup... Backup!

When editing a file I generally do this;

    Make a temp folder on my desktop...
    Open the site with the FileZilla FTP utility...
    Download a copy of the file in question and place it in the temp folder...
    Then download a fresh copy into my editor and edit away...
    Go back to the site and rename the existing online copy of the file to something else, like, old_filename.php...
    Then upload the edited version of the file.

When doing several files I wait until all of them have been edited so that they can all be uploaded at the same time.

If everything is OK then I'm finished.
If its all messed up I just delete the bad file that was uploaded, rename the good one to the correct file name and the forum is back to normal.
« Last Edit: February 13, 2014, 02:06:54 PM by Ken »
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 9424
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • View Gallery
    • Buildz Hosting
Re: [How-To] Using a TinyPortal Article for your 404 Error Page!
« Reply #1 on: February 12, 2014, 07:40:36 PM »
You can add "If you do not have a FTP program (or don't know how to use one) you use your hosting's control panel (such as cPanel) to download and upload the file. You can even use it to directly edit the file, if needed. ;)

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11942
  • Gender: Male
  • View Gallery
Re: [How-To] Using a TinyPortal Article for your 404 Error Page!
« Reply #2 on: February 12, 2014, 07:55:40 PM »
You can add "If you do not have a FTP program (or don't know how to use one) you use your hosting's control panel (such as cPanel) to download and upload the file. You can even use it to directly edit the file, if needed. ;)

Good point, I'll add that.
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline ZarPrime

Re: [How-To] Using a TinyPortal Article for your 404 Error Page!
« Reply #3 on: February 13, 2014, 12:27:51 PM »
You can add "If you do not have a FTP program (or don't know how to use one) you use your hosting's control panel (such as cPanel) to download and upload the file. You can even use it to directly edit the file, if needed. ;)

or maybe "(such as the File Manger in cPanel)" instead of just "(such as cPanel)". :wink:

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11942
  • Gender: Male
  • View Gallery
Re: [How-To] Using a TinyPortal Article for your 404 Error Page!
« Reply #4 on: February 13, 2014, 02:05:31 PM »
You can add "If you do not have a FTP program (or don't know how to use one) you use your hosting's control panel (such as cPanel) to download and upload the file. You can even use it to directly edit the file, if needed. ;)

or maybe "(such as the File Manger in cPanel)" instead of just "(such as cPanel)". :wink:

Good catch... Done.
... also updated the post on TinyPortal.
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 9424
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • View Gallery
    • Buildz Hosting
Re: [How-To] Using a TinyPortal Article for your 404 Error Page!
« Reply #5 on: February 14, 2014, 08:08:41 AM »
Yeah, meant to put that in there. LOL