hardjoko
05-01-2007, 12:52 AM
Hi,
This is my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Errordocument 404 /404.html
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [L]
</IfModule>
Basically, if file exist just call the file
If the is not ended in jpg, jpeg, gif, png, css, or js, and doesn't exist then call index.php
Does that mean it'll call 404.html for all files that ended in jpg, jpeg, etc?
What happened when 404.html doesn't exist?
This is my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Errordocument 404 /404.html
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [L]
</IfModule>
Basically, if file exist just call the file
If the is not ended in jpg, jpeg, gif, png, css, or js, and doesn't exist then call index.php
Does that mean it'll call 404.html for all files that ended in jpg, jpeg, etc?
What happened when 404.html doesn't exist?
