Hi, I am trying to implement; show profile page directly by typing username on url like facebook
for example
www.facebook.com/username - it'll show the user profile page
Using the following code in my frontend/config/main.php
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'alias:w+id:...' => '/search/default/details'
],
],
Unable to implement/write the url rule for this. Need help and steps to implement the same.
Hi, I am trying to implement; show profile page directly by typing username on url like facebook for example www.facebook.com/username - it'll show the user profile page
Using the following code in my frontend/config/main.php 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ 'alias:w+id:...' => '/search/default/details' ], ], Unable to implement/write the url rule for this. Need help and steps to implement the same.
Thanks