CodeIgniter RewriteRule and ErrorDocument in .htaccess - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: CodeIgniter RewriteRule and ErrorDocument in .htaccess (/showthread.php?tid=80025) |
CodeIgniter RewriteRule and ErrorDocument in .htaccess - GurusGuru - 09-03-2021 Its seems that because of the CodeIgniter RewriteRule, the ErrorDocument option doesn't work. Anyway I can get the ErrorDocument to work RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] RewriteCond %{HTTP_HOST} !^www.domainname.com$ [NC] RewriteRule ^(.*)$ https://www.domainname.com/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ci_index.php?/$1 [L] ErrorDocument 404 /404.php RE: CodeIgniter RewriteRule and ErrorDocument in .htaccess - InsiteFX - 09-05-2021 If it is a true error report it to the Development Team on GitHub issues. |