Probel with url |
[eluser]fejtis[/eluser]
Hi I have a problem with call URL. When I want to start a web from index.php, I write www.example.com/ , but result is page not found, because I must write www.example.com/index.php/controller/. Content of .htaccess RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] Can you help me?
[eluser]Michael Wales[/eluser]
You need to define a default controller in routes.php - this is the controller that will be loaded when a controller/method is not defined in the URL.
[eluser]fejtis[/eluser]
Yes, I have defined default controller. I can call www.example.com/index.php/ , but I canĀ“t call www.example.com/ or www.example.com/controller/. The "index.php" must be behind "/".
|
Welcome Guest, Not a member yet? Register Sign In |