I developed the project in codeigniter-HMVC, now I want to manage URLs in a standard way.
My current urls are:
http://xyz/home/contactus http://xyz/home/aboutus .... ....
I want just:
http://xyz/contactus http://xyz/aboutus .... ....
I use the HMVC coding structure.
You can define custom routes in routes.php
routes.php
$route['contact-us'] = "home/home/contactus"; ^ ^ ^ ^ New URL module Controller Method
In a url xyz/contact-us'that will work fine
xyz/contact-us'
More on CodeIgniter Route
In ur route.php u file can be redirected as
$route['xyz/contactus'] = "xyz/home/contactus";
routes.php [project-folder]/application/config/routes.php
[project-folder]/application/config/routes.php
URI , . URI , URL- , , .
$route['dummy-controller/dummy-method'] = 'main_controller/main_method';
$route['contact-us']='index.php/home/contactus';
Source: https://habr.com/ru/post/1693962/More articles:R is the micro-lens equivalent, which includes memory, as well as runtime - algorithmRemoving pointers - c ++Unable to get rid of errors even after using the correct headers - cdifference between two consecutive days in days in sql server - sqldo strupr () and strlwr () in string.h section have ANSI standard? - cI uploaded the image via JS. How to change css? - javascriptWhy we need the hashcode and bucket concept in LinkedHashMap - collectionsChange EditText height to fit text size - androidHow to make edittext size included? Android - androidСоединение Java 8 https не выполняется на некоторых сайтах - javaAll Articles