apache - Returning a 404 for a missing file under a specific directory -
in apache, possible in .htaccess return different 404 page based on filepath?
for example:
for missing pages under http://example.com/support/* redirect 404-support.php else errordocument 404 /404.php
if have directory named 'support', put in .htaccess file inside directory , override configuration of parent directories. so, in / folder, specify be
errordocument 404 /404.php
but support folder, put in new .htaccess file , type in:
errordocument 404 /support/404.php
Comments
Post a Comment