apache - serve 404 page from a folder with static files when using Joomla -
i have joomla site running on apache , ubuntu 12.04. wanted show custom 404 pages shown when 404 error occure. have made necessary changes error.php file in template directory redirect '/404' directory have index.html file many images,css , java script.
now when accessing non-existent page, joomla redirecting me root/404 there 403 forbidden error appache. 404 directory located inside 'htdocs' directory of joomla installation.
additional info: 1. don't want convert 404 page joomla template or article. 2. using joomla ami bitnami on amazon web service
if redirect 404 page, corrupt error mechanism. client never 404 status, 200 on successful redirect error page.
instead, should modify template's error.php to
- send
404 not foundheader - directly send error page using
readfile()
you might have adjust asset paths within error page.
Comments
Post a Comment