CodeIgniter RewriteRule and ErrorDocument in .htaccess |
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 |
Messages In This Thread |
CodeIgniter RewriteRule and ErrorDocument in .htaccess - by GurusGuru - 09-03-2021, 04:55 AM
RE: CodeIgniter RewriteRule and ErrorDocument in .htaccess - by InsiteFX - 09-05-2021, 01:56 AM
|