Creating error pages using .htaccess
| Published on 8/17/2008 by Dotnetindex More articles in PHP
|
We can create custom Error Pages using .htaccess file. Still you've a chance to update error pages, updating apache configuration. Now first create .htaccess file. Enter following code inside: <Files .htaccess> order allow,deny deny from all </Files> ErrorDocument 404 /errordocs/error404.htm
This pretty code, tells apache to redirect client to error.html page. ErrorDocument 404 /error.html 404 tells server that, if an Page Not Found error occurred, send client to that page (error.html). Orther error code are
400 - Bad request
|
no comments submitted
Latest Posts
- How to Create an Image in PHP
- How to Prevent Email Injection in Your PHP Form to Mail Scripts
- Writing Your First PHP Script: Feedback Form Script
- Creating a Simple PHP Cache Script
- How to write a simple scraper in PHP without Regex
- PHP cURL functions tutorial
- Submitting forms using PHP cURL
- Two way encryption
- How to Add Data in a MySQL table
- PHP Nested Loop Tutorial
- Image manipulation and watermarking in PHP with GD2
- Making A Cool Login System With PHP, MySQL & jQuery
- Build a customizable RSS feed aggregator in PHP
- Custom RSS 2.0 Content Feeds using OOP
- PHP Development: Getting Started
- How to Count all elements in an array
- Making A Cool Login System With PHP, MySQL & jQuery



