I have installed Grav in my localhost and everything was fine. When I moved all the files to my hosting provider’s root directory, the problem was, when I launched the domain, for instance, example.com, it didn’t redirect me to index.php. I had to manually enter example.com/index.php to launch. I am not sure what the problem is. Further, I copy pasted the .htaccess file shipped with grav and uncommented the ‘RewriteBase /’ entry but it didn’t help. This also causes front end problems like partial rendering of pages.
Installed last Grav 1.1.5 and installed land ion template using gpm tool.
Grav should never redirect you to
index.php, it should simply use the page routes. This means
/ home page
/something for the internal pages
/index.php nothing worked?
Normally a hosting provider should have their web server configured properly so index.php and possibly index.htm and index.html are handled when a URL is used which ends with a slash such as example.com/
Apperently Apache is also ignoring the DirectoryIndex setting in the default Grav .htaccess file:
# Begin - Prevent Browsing and Set Default Resources
DirectoryIndex index.php index.html index.htm
# End - Prevent Browsing and Set Default Resources
It seems you need to ask your provider to fix this.