Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter RewriteRule and ErrorDocument in .htaccess
#1

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
Reply
#2

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 )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB