• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User link - route all request that generates 404

#1
Hello,

I want to create user profiles with the following link structure: site.tld/username.
The problem is that if I use: $routes->add('(:any)', 'Profile::userbyname/$1') , it will also redirect valid controllers (ex: login, admin etc).

How can I do this redirect correctly?

Thanks!
Reply


Messages In This Thread
User link - route all request that generates 404 - by mirel.popescu - 06-10-2019, 12:40 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.