.htaccess - Custom 404 error redirect not working for https requests in htaccess file -
i have simple 404 redirect in .htaccess file works fine http requests:-
errordocument 404 /apps/handle_error.php
the handle_error.php returns appropriate png image depending on url path. however, when replace request https, returns default 404 error page , never redirect.
i know ssl certificate installed correctly valid content returned normal static pages. there missing in htaccess file regarding 404 error redirects https requests?
(a similar question asked here no clear resolution)
after soul searching found answer, specific case anyway. apache2, mod_ssl , mod_rewrite not configured correctly work together. default allowoverride setting in ssl config set "none" , mod_rewrite requires minimum of allowoverride of "fileinfo".
(to fair, got answer serverfault)
Comments
Post a Comment