Website Redirecting to Welcome Codignator Page

308 views Asked by At

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 .

====

CODING

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.

Page rendered in 0.0133 second

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]

2

There are 2 answers

0
monita On

Inside application/config/routes.php, set your controller name to default controller.

$route['default_controller'] = "put your controller name";

1
Rakesh Sharma On

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