[thelist] problem with customized 404 and php (new problem)

iris thelist at jarmin.com
Sat Sep 2 06:29:00 CDT 2006


previously:

> i just switched a client's site over to php (all files now ending in 
> .php) and set up a customized 404 page (amending the .htaccess file) to 
> catch everyone coming there via old bookmarks and links.  this works 
> fine for requests looking for directories or html files but not for php 
> files.

so i added

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /404.php

to the .htaccess file so that it will redirect invalid requests for php 
files to the customized 404 page...

but now it redirects all requests for everything but php files (eg. html 
files or pdfs) to the 404 without even checking whether they actually exist.

it probably has something to do with the (.*), right?  could someone 
help please?

thanks
iris

_______________________
omnia mea mecum porto

<http://jarmin.com/>
<http://manhold.net/>
_______________________




More information about the thelist mailing list