Source Rally PHP Community Scripts .. Sign up .. Login
User index.php (or another script) to handle requests to no existing files on your apache web server.

Insert the code in your .htaccess file in your web root directory.
Access: Public      Tags: php, htaccess, apache, 404, mod_rewrite
Add to favourites       Subscribe comments       Copy code       Bookmark
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-F
RewriteRule   .$  index.php
Add to favourites       Subscribe comments       Copy code       Bookmark
Sign up to add your own comment here!

Comments

neptho - 15-09-2007 00:17
Add to friends       Mail user
You can accomplish the same thing without mod_rewrite:

ErrorDocument 404 /path/to/file
thanjeys - 25-06-2007 15:50
Add to friends       Mail user
hi region..
ur article help for me...
More comments: 1
Shared by:

regin

Mail user Add to friends
All user contributed content is available under the unless specified otherwise.
Remaining copyrights Regin Gaarsmand 2006-2008
About www.SourceRally.net