[eluser]Isuka[/eluser]
Hello,
In my config.php file I enable the url_suffix option with .html so all my pages are .htmled.
In my .htaccess I removed the index.php like that
Code:
RewriteRule ^(.*).html$ index.php?/$1 [L]
If I go to mysite.com/about.html everything work fine, but if I go to mysite.com/about, I got a 404 Not Found, the default 404 page of Apache.
So I try to add another rule in my .htaccess, without the suffix
Code:
RewriteRule ^(.*)$ index.php?/$1
RewriteRule ^(.*).html$ index.php?/$1 [L]
Now if I go to mysite.com/about.html and mysite.com/about, both url gave me a 404 Not Found but the CI 404 page this time.
Maybe an .htaccess expert could tell me how can I do ?
Thanx