Welcome Guest, Not a member yet? Register   Sign In
Remove index.php and call default controller method when page loads
#3

[eluser]CroNiX[/eluser]
In config/routes.php, change the "default controller" to "site".

Then whenever anyone visits your domain with no path (www.example.com), it will load the index method of the class site. (www.example.com/site) but only display the domain.

As far as getting rid of index.php, this .htaccess rule (in your sites root dir) usually does the trick:
Code:
RewriteEngine On

# Handle the index.php file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]


Messages In This Thread
Remove index.php and call default controller method when page loads - by El Forum - 08-19-2010, 04:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB