[eluser]Jelmer[/eluser]
Your htaccess rules are ordered very weird and contain some stuff I'm not sure about whether it can work. Here's a reordered list, but if that doesn't work you should try my earlier suggestion: remove lines and start adding them back one by one to see which one breaks it.
Problems:
- Two addtype rules for .htm and .html
- I've merged similar addtypes
- I don't think addhandler needs the 'application/' part
- The code below doesn't make much sense to me (it means: rewrite any request for a file that doesn't exist ending in .php)
Code:
Rewritecond %{REQUEST_FILENAME} !-f
RewriteRule \.php$ /error404.html
- I'm assuming you want to rewrite to the local index.php and not redirect, so you don't need the full URL
- The RewriteCond for the final rule doesn't need to end and start with a negated /
- You should use the routes.php config file (look it up in the user guide) to rewrite to a specific controller, use the .htaccess only to rewrite to the index.php
- I've added a ? between "index.php" and the following slash, that isn't always needed.
Code:
AddType application/x-httpd-php5 .html .htm .php
AddHandler x-httpd-php5 .html .htm .php
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
Rewritecond %{REQUEST_FILENAME} !-f
RewriteRule \.php$ /error404.html
RewriteCond $1 !^(index\.php|system|application|iservices|mod_css|seo|Plugins-Testimonios|links|mod_img|mod_galeria|mod_scripts|includes|adm_img|adm_css|resize|views|templates|img|imgs|js|css|images|tester|system/plugins|robots\.txt|language)
RewriteRule ^(.*)$ /index.php?/$1 [L]