Creating Custom Error Messages in Apache .htaccess / Error Handling
The .htaccess file is a file found in Apache servers that allows you to manipulate the behaviour of the server. A very common use is to create custom error messages for server errors. Examples of such errors are "404 Not Found" (say when you click on a broken link), and the "500 Internal Server Error" (a script failed). Most hosts allow you to have your own .htaccess file, and so now we will look at only one of the things we can do with a custom .htaccess.
Custom 404 Page Not Found Pages .htaccess / Error Handling
A cool trick you can entice your visitors with is custom error pages. When a page on your server is not found, your visitors will normally see their browser's default message such as "Page cannot be displayed." If you used a custom error page though, your visitors will see your page.
htaccess: Stopping "page not found" errors .htaccess / Error Handling
How to use an .htaccess file to automatically redirect requests for files that may have moved following a site redesign. This really useful technique will stop your users getting "page not found" errors after bookmarking pages on your site that no longer exist. Also solves problem of search engines that haven't caught up yet with your new site structure.
Popular Web Tricks .htaccess / General Guides
A really cool feature that web designers overlook is the use of the .htaccess file. Simply put, whenever you see a custom error page (404, 403, etc.), use server side includes, restrict IPs, load a default page, or do any host of events invisible to the user, you are probably going to be using .htaccess.
Introduction .htaccess / General Guides
A text file called .htaccess can be used to control web server (Apache) behavior for your web site. The other sections of this .htaccess tutorial deal with actual commands (called directives) which can be used.
It configures settings for the web server per directory (the one it is placed in) and subdirectories under it.
Create the File and Use it on Your Site .htaccess / General Guides
.htaccess is a file that you can create using Notepad in Windows (or any text editor) to add some additional functionality to your website and server. It is usually supported by all Unix/Linux web hosts which use the Apache server. This tutorial will help you create the file and use it on your site.
How to Create your own Custom 404 pages .htaccess / Error Handling
In this tutorial you will learn how to create your own custom 404 pages, and yes you can make it very cool with all your design abilities, it does not have to look so dull anymore with big 404 error on the page. And don't forget to put a link back to your main page, so that if the user come across your 404 page he/she can click the link and go to your main page.
Server Side Includes .htaccess / General Guides
Using Server Side Includes, you can insert the contents of another file into the current one, meaning you only have to change this one included file and it's contents will change on every page on your site.
Introduction to .htaccess .htaccess / General Guides
.Htaccess is a small text file that control configuration aspects of an Apache web server. Most people are familiar with the .htaccess file in relation with the ability to restrict access to a directory via password protection. However, .htaccess can do a lot more than password protection. .Htaccess is an extremely powerful configuration tool that can customize the way your web site behaves and how your web server handles requests.
Custom Error Pages .htaccess / Error Handling
We all know what a 404 "Not Found" error page looks like. This tutorial will show you how to make those error pages anything you desire.
Custom Error Messages .htaccess / Error Handling
It is a fact of life that if you run a busy regularly-updated website you'll also move your files about quite often. Whilst this may not pose a problem for you initially, search engines take a while to process dead links, and during this time you may be losing visitors who go to your old pages and get the standard 'page not found' error. You can prevent this by customizing your error pages, sending your visitors instead to a nice formatted webpage that politely tells them to keep on looking using your new navigation structure.