Welcome Guest, Not a member yet? Register   Sign In
How can I remove the controller name from url ??
#1


.txt   htaacess.txt (Size: 171 bytes / Downloads: 77)
.txt   config.txt (Size: 17.92 KB / Downloads: 92)
.txt   site.txt (Size: 712 bytes / Downloads: 72)
.txt   route.txt (Size: 111 bytes / Downloads: 77)


Hi

I want to access my page like--> http://localhost/basicsite/home

currently I am getting it as-->  http://localhost/basicsite/site/home

or/and

I want to access my page like-->   http://localhost/basicsite/about


currently I am getting it as-->   http://localhost/basicsite/site/about


"site" is the name of controller .

I want to remove that "site" (name of controller) from URL

how to achieve it please help me with this .

those attachments are there showing required files you may want to know .

attachments are
1- htaccess file   ("at / root folder")
2- config.php     ("application/config/config.php")
3- site.php         ("application/controller/site.php")
4- routes.php    ("application/config/routes.php")

Thanks
Reply


Messages In This Thread
How can I remove the controller name from url ?? - by kartikmehra - 10-07-2015, 03:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB