Loading...
 
Skip to main content

Architecture / Installation


File not found not re-directing to 404 page

I recently replaced an existing static web site with a Tiki site. A few users have reported that when trying to access an old directory or file that no longer exists, instead of getting a 404 page, they are getting a version of the home page without css formatting or images. This happens only for certain types of file requests, e.g., .pdf files, but not for .htm files which generate a normal 404 error and lead to a custom 404 page.

I suspect this has something to do with the .htaccess file supplied for Tiki, but have not been able to figure out why this is happening. I thought if a directory or file did not exist, it should trigger a 404 error.

Any ideas?

Thanks.

Your suspicion sounds right. Maybe if you could collect a few URLs that cause the behavior, .htaccess could be modified to avoid it. Actually, it would be good to submit a bug report at dev.tiki.org along with these URLs so, hopefully, some regex guru can figure out a solution.

-- Gary

The common thread is a file or directory that does not exist and a file type not listed in the .htaccess file. If I try to edit the .htaccess file to do a manual redirect for file or directory does not exist I get an internal server error.