If your goal is search engine friendliness or usability, it may be preferable to route all 404's to a PHP handler script.
HTACCESS Code:
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) http://www.your-site.com/index.php
The PHP handler script would then look up the cached (preferable to database calls) content if it exists and serve the page - otherwise the request may be routed to your standard 404 page.
|