How can I remove the controller name from url ?? |
htaacess.txt (Size: 171 bytes / Downloads: 77) config.txt (Size: 17.92 KB / Downloads: 92) site.txt (Size: 712 bytes / Downloads: 72) 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
how long did you know ci ?
so here is i give simple tutorial about your issue Code: /*router*/ //view Code: <h1>Here is website</h1> //controller Code: <?php Hope this make sense, i give attachment, my condition is without index.php. |
Welcome Guest, Not a member yet? Register Sign In |