| ||||||||||||||||||||||||||
tag. After everything is
safely in place, simply save the file, but instead of ending it
with the usual ".htm" or ".html", use ".shtml". Do not forget to
do this, as the SSI tag might not work if you fail to use the
proper extension.
Finally, you will have to edit the .htaccess file you created
when you built your custom 404 page. If you only have
" ErrorDocument 404 http://www.yourdomain.com/404page.html "
in it, modify the file so that it will contain the following:
Options Includes ExecCGI
AddType application/x-httpd-cgi .cgi .pl
AddType text/html .shtml
AddHandler server-parsed .shtml
ErrorDocument 404 http://www.yourdomain.com/404page.shtml
The new lines will enable Server Side Includes and CGI so that
your script will work. Do not forget to change the ErrorDocument
404 line to point to the new .shtml page instead of your old
.html version. After you are done, save your .htaccess file.
Upload, set permissions and launch!
===================================
Connect to your host with an FTP program and upload the .shtml
version of your 404 page and your new .htaccess file into your
root directory. Then go to the directory you've reserved for CGI
programs and send the 404helper.cgi file there. Make sure that
you upload in ASCII, not in Binary mode! I nearly drove myself
crazy by accidentally using Binary mode and then trying to figure
out why the script refused to work.
Everything is now uploaded and all that remains is to set
permissions so that the CGI program can be executed. You'll need
to CHMOD 755 both the CGI file and the directory where it is in.
The steps you need to take in order to accomplish this depend on
what software you are using, but here are the instructions on
how to do so with WS_FTP, a popular Windows FTP program which can
be downloaded from Tucows.com.
First, navigate to the directory where you've uploaded the CGI
program. Left-click it once to highlight the file, then right-
click it. Select "chmod (Unix)" from the menu that appears. Give
Read, Write and Execute permissions to the Owner and Read and
Execute permissions to Group and Other. Then go into the root
directory and repeat the same process with the folder of the
directory where you placed the CGI program.
That's it. The work is finally done and you can now enjoy the
luxury of receiving an E-mail report on all 404 errors, allowing
you to quickly stomp out any broken links and improve the
quality of your site. Congratulations!
About the Author
Lauri Harpf runs the A Promotion Guide website, where he
offers free information about search engines, directories
and other promotion methods. His site can be found at
http://www.apromotionguide.com/

![]() Times Online | Not Enough Wonder in Burton's 'Alice' Post Pioneer Here we get the original characters brought to life either by live action or CGI. On the live action front, we have the Mad Hatter (Johnny Depp), ... Selling Out: Movie Stars Mia Wasikowska talks about playing ALICE in Tim Burton's latest movie |
“The Runaways” Proves You Can't CGI Being a Teenaged Whore BestWeekEver.tv (satire) ... are now possible thanks to the wonders of technology, this clip will very clearly prove that no director on Earth could CGI being a huge teenage whore. ... |
Ensign Energy Services Inc. - 2009 Annual Financial Results Webcast - March 15 ... FOXBusiness To listen to this event, please enter http://www.newswire.ca/en/webcast/viewEvent.cgi?eventID=2975280 in your web browser. For a complete listing of ... |
![]() New York Times | 'Alice' in CGI-land Catholic Online In Tim Burton's "Alice in Wonderland," Lewis Carroll's heroine (Mia Wasikowska) is a young woman on the verge of being betrothed to a man ... Alice in Wonderland 'Alice in Wonderland' enchants North American box office Review: Alice In Wonderland |
![]() PR Web (press release) | CGI Unveils CGI Trade360 to Replace Proponix360 as Trade and Supply Chain ... PR Web (press release) A), a leading provider of information technology and business process services, is pleased to announce CGI Trade360, the new brand name formerly known as ... CGI unveils CGI Trade360 |