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
- 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
- Screen capture with PHP and GD
- Database driven web counter with PHP/mySQL



