I have a site built on codeigniter but I have come accross a small issue. Basically the homepage can be accessed through 3 different urls, being:
www.domain.com/en
www.domain.com/en/
www.domain.com/en/home.html
I'd like the first and third url to redirect to the second (www.domain.com/en/).
I've been playing around with .htaccess for hours and I can't seem to get any changes done.
Any help would be really appreciated.
Edit: Here is my current .htaccess
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]
RewriteCond %{HTTP_HOST} ^mywebsite.com [NC]
RewriteRule ^(.*)$ http://www.mywebsite.com/$1 [L,R=301]
RewriteRule ^en(/home.html)?$ /en/ [L]