Welcome Guest, Not a member yet? Register   Sign In
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

If it is a true error report it to the Development Team on GitHub issues.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB