Free Web Site Hosting
However, disk space, memory, and bandwidth have become so inexpensive that some companies are providing free hosting with no ads at all. What's the catch? There are limits on the amount of disk space and bandwidth you get. But those limits are far higher than what ad-supported hosting provided just a few years ago.
They simply hope that as your site becomes more successful that you'll want to upgrade to a paid hosting service with them. They also display lots of advertising on the administration pages, but only you will see those.
In my research, I found two free services that seem to offer everything that most people could possibly hope for. I compare them feature for feature in a table below. Both sites allow you to host your own ads if you wish and neither display their own ads on your site. Both sites have multiple tiers of paid hosting services, starting at $1.99 per month. If you need more disk space or bandwidth, it will likely to be less expensive to upgrade to one of the paid plans rather than adding extras to the free plan. Note that in most cases, the paid plans offer more features as well as more space and bandwidth. The asterisks indicate items that change if you upgrade to a paid hosting plan. The data is current as of March 2008.
|File Management and Uploading|
|FrontPage server extensions||Yes||Yes|
|Maximum file size||n/a||500K*|
|Password protected files||Yes||No|
|Prohibited file types||None||.htacl, .htaclu, .avi, .mov, .mp2, .mp3, .mpeg, .ram, .asf, .quota, .vbs, .shs, .scr, .exe, .cmd, .torrent, .wmv, .wma, .rm, .zip|
|Custom 404 page||Yes||No*|
|POP email accounts||3*||5*|
|Domains / URLs|
|Free URL choices||yourname.freehostia.com||yourname.awardspace.com, yourname.awardspace.biz, yourname.awardspace.us, yourname.awardspace.info, yourname.awardspace.co.uk|
|Domain name registration (.com or .net)||$9.99||$14.95|
|Custom MX, A, SPF records||MX, A, SPF||MX, A*|
|Automatic script installer||35 scripts||No*|
How to Set Up A Custom 404 Error Page
Your web host has to provide you with the ability to use a custom 404 error page. You will usually find mention of this somewhere in their documentation or on the hosting control panel if they provide one. If you are hosted on a server running Apache, look for a feature to modify a file named ".htaccess". You may just need to provide a file of a specific name in the root directory of your web site.
Creating Your Custom PageYour custom 404 File Not Found page should have the same basic design as the rest of the pages on your site, including header, footer, background, navigation links, etc. If you have a site search feature, make sure you provide a search box so users can find what they were looking for. Be sure to include a link to your site's home page, or the main page for the directory if it is for a specific directory. You also need to decide where to put the html file. To keep things simple, you can put it in the root directory, but you may want to put it in a scripts or cgi-bin directory. Be sure to add an exclusion to your robots.txt file if you are putting it in a directory that is not excluded.
Testing Your Custom PageYou can test your page locally until it looks the way you want, but you need to test it after uploading it (and the .htaccess file, if needed) to the server. Then test it by typing a URL that you know does not exist to be sure your custom page is displayed and that the links on it work properly. This is especially critical if you are placing the file in a directory other than the one containing your regular pages, since your links may be using relative paths that assume the page is in the root directory.
Set up Apache .htaccess fileIf you are on an Apache server, you may need to create or update a file named .htaccess. The .htaccess file is what Apache web servers use to allow you to fine-tune your web server configurations at a directory level. It is just a plain text file that you can edit with Notepad or the equivalent. You need to add the following line, using the name of your custom 404 document:
ErrorDocument 404 /custom404.html
This directs Apache to serve up the document you named whenever it cannot find the file it needs anywhere in your site. If you want a different custom 404 page for different directories, just create a .htaccess file in each directory. They will override the .htaccess file in the root for any files requested in that directory tree. In these subdirectory .htaccess files, do not use the slash at the beginning of the name for your custom page. Be very sure that the file name is correct, otherwise you could end up with an endless loop.
Properly designed and configured, a custom 404 page should keep you from losing visitors because of a bad link or poor typing.