I created a site in PHP using CodeIgniter framework. When it was done, I edited routes.php
file and added .htaccess file to eliminate /index.php/
part from URL.
Now, when I try to open it in localhost, it works fine, I can access http://localhost/mysite
and get the landing page I wanted.
But, the problem is when I try to access the site on server, I get an error. So if I open something like http://mysite.com
I get CodeIngniters' default 404 page. I can open all other pages if I specify their URL, like: http://mysite.com/about
but when someone else opens the site, he gets an error and he doesn't know what to type in order to pass by that error.
What should I do to fix this? Thanks in advance.
EDIT: .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [NC,L,QSA]