Hello, I want to do that: I have my domain http://www.example.com, the login is public so no password is needed, just put your team name and select the sport, so in the login page you type team1 and basket, you login with that credential and you see the information related.
But the customer wants to show always the same url like this: http://www.example.com/team1/basket, http://www.example.com/team1/baseball, http://www.example.com/team3/hockey and so forth, only when click logout is going to appear http://www.example.com. But if the user press the button to go to the controller ‘site’ method ‘actionScore’, the page will enter en /site/score, but the url it should be still http://www.example.com/team1/baseball, but if the user types the url http://www.example.com/team1/basket is going to change to this one and relogin with that credentials.
I don’t know if it is possible to do this in Yii, maybe the only way to do it is in .htaccess, but then again I do not know how to set the .htaccess to perform that behavior.