Click here to Skip to main content
15,746,918 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi 2all

i want to change the route of my controller method from


to be


how to do that from routes.php file
TheSniper105 26-Aug-14 5:24am    
more details please ??? i wanna make it like wordpress url
Zeeshan17 4-Sep-14 12:05pm    
I deleted my solution as i got your question wrong way.Please elaborate what you meant by wordpress url way because it uses various url structure that for pages it uses direct url else under specified categories.

Else you need to study 301 redirects and use it in your .htaccess to make the redirection as you need.
widy angjaya 5-Sep-14 1:02am    
how about change it from config.
the file you search must be in config/routes.php
add $route['anyname']="category/view";
in that files
TheSniper105 11-Sep-14 5:05am    
did not work this is the first solution i tried

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900