BWiz
07-17-2008, 02:58 AM
Hey, I'm trying to create a custom error 404 page, so in my .htaccess file, I have the following code:
RewriteEngine on
RewriteRule !\.(css|js|png|jpg|gif|htm)$ index.htm
ErrorDocument 404 404.htm
Since I've exempt css files from the rewrite rule, I've tried accessing a css file that does not exist. However, when the page loads, all I see is "404.htm". It does not actually redirect to the page 404.htm. Does anybody have any suggestions or an idea to this? Thanks.
RewriteEngine on
RewriteRule !\.(css|js|png|jpg|gif|htm)$ index.htm
ErrorDocument 404 404.htm
Since I've exempt css files from the rewrite rule, I've tried accessing a css file that does not exist. However, when the page loads, all I see is "404.htm". It does not actually redirect to the page 404.htm. Does anybody have any suggestions or an idea to this? Thanks.