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


Messages In This Thread
CodeIgniter RewriteRule and ErrorDocument in .htaccess - by GurusGuru - 09-03-2021, 04:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB