Reputation: 11
Guys I need help I have hosted the website on Ipage Server. I have uploaded the PHP development of the website and extracted the same. Have also created a copy of the Controller files outside the applications folder. But there is a issue here. Whenever I try to view my website in browser-> www.example.com it redirects me to the below page .
====
Welcome to CodeIgniter! The page you are looking at is being generated dynamically by CodeIgniter.
If you would like to edit this page you'll find it located at:
application/views/welcome_message.php The corresponding controller for this page is found at:
application/controllers/welcome.php If you are exploring CodeIgniter for the very first time, you should start by reading the User Guide.
And I am able to see my website only when i try to view as -> www.example.com/index.php/Home .... [Home is the name of my website controller]
Upvotes: -2
Views: 319
Reputation: 1
Inside application/config/routes.php, set your controller name to default controller.
$route['default_controller'] = "put your controller name";
Upvotes: 0
Reputation: 13728
Go to application/config/routes.php
and set your default controller. By default it's "welcome" controller
change
$route['default_controller'] = "welcome";
to
$route['default_controller'] = "your_controller_name"; // home
Upvotes: 0