Change route for root |
Tried to reply to this yesterday but the site went down.
You can not use 11h11 as class, method or function name, it has to start with a letter or underscore. _remap will re-route everything as long as you point it to the right controller. so, if you want the URL to be www.myproject.com/11h11 you'll have to do it via routes. application/config/routes.php PHP Code: $route['11h11'] = 'whc/my11h11'; PHP Code: class Whc extends CI_Controller If you want to make that tag dynamic, you probably need to rework your URLs to add www.myproject.com/tags/11h11 or something, so you can specify it should be treated as related URL. |
Messages In This Thread |
Change route for root - by omid_student - 08-21-2018, 02:41 AM
RE: Change route for root - by InsiteFX - 08-21-2018, 02:09 PM
RE: Change route for root - by omid_student - 08-21-2018, 10:36 PM
RE: Change route for root - by jreklund - 08-22-2018, 01:00 AM
RE: Change route for root - by Pertti - 08-22-2018, 01:25 AM
RE: Change route for root - by omid_student - 08-22-2018, 01:40 AM
RE: Change route for root - by Pertti - 08-22-2018, 02:27 AM
RE: Change route for root - by omid_student - 08-22-2018, 03:01 AM
RE: Change route for root - by InsiteFX - 08-22-2018, 03:33 AM
RE: Change route for root - by omid_student - 08-22-2018, 09:34 AM
RE: Change route for root - by Pertti - 08-23-2018, 01:16 AM
RE: Change route for root - by InsiteFX - 08-23-2018, 03:33 AM
RE: Change route for root - by omid_student - 08-23-2018, 05:44 AM
RE: Change route for root - by omid_student - 08-23-2018, 06:17 AM
|