Welcome Guest, Not a member yet? Register   Sign In
Probel with url
#1

[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?
#2

[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.
#3

[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 "/".
#4

[eluser]fejtis[/eluser]
Any tip?
#5

[eluser]Alex007[/eluser]
Did you try this:

http://codeigniter.com/wiki/mod_rewrite/




Theme © iAndrew 2016 - Forum software by © MyBB