afshin.m Posted June 23, 2010 Share Posted June 23, 2010 Hi, i want to set a custom (and empty) 404 error for my static contents like CSS, Gif, Jpeg etc. i found this code : <FilesMatch "\.(css|png|jpg|jpeg|gif|bmp|swf|flv)$"> ErrorDocument 404 error-404.txt </FilesMatch> But it not worked for images that located in sub folders, it works for images that located in the root folder and where my .htaccess file located. Please help, thanks Link to comment https://forums.phpfreaks.com/topic/205659-set-custom-404-error-for-static-contents/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.