Welcome Guest, Not a member yet? Register   Sign In
remove index.php from URI
#1

[eluser]Unknown[/eluser]
hi all
i want to remove index.php from my url but there is problem. i am redirecting a page by redirect function

this code in welcome file
Code:
redirect("index.php/campaigns/job/home")

this code in routes file
Code:
$route['campaigns/job/(:any)'] = "jobcontroller";

but i am not able to use any function of "jobcontroller" controller.

plz give me any idea for solving this problem
#2

[eluser]gon[/eluser]
You can remove index.php by reading the docs:
http://ellislab.com/codeigniter/user-gui.../urls.html

And you must not do a redirection on welcome. Just create your controller and set it as the default one:
http://ellislab.com/codeigniter/user-gui...uting.html




Theme © iAndrew 2016 - Forum software by © MyBB