[eluser]Unknown[/eluser]
Hi
Good day to all developers, I have trouble implementing a redirect on htaccess. I have setup a server (Ubuntu) with apache2. I have set the virtual host to read .htaccess file. I got trouble when someone visits my domain with out the main controller (domain.com/Home) they got a 404 page. Where as if they visit with the main controller, the page will properly display.
Here is my htaccess code:
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
Is there something wrong with my htaccess? Please advise