Welcome Guest, Not a member yet? Register   Sign In
Remove controller name from the URL
#6

(This post was last modified: 04-21-2020, 12:00 PM by jreklund.)

To redirect everything you need an any rule.
PHP Code:
$routes->add('(:any)''Main::$1'); 

And the previous provided routes work just fine. You most likely made an error in your Main.php file.
Reply


Messages In This Thread
Remove controller name from the URL - by eleumas - 04-20-2020, 11:04 AM
RE: Remove controller name from the URL - by Gary - 04-21-2020, 06:47 AM
RE: Remove controller name from the URL - by jreklund - 04-21-2020, 12:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB