Yii redirect base url bookmark

A post on the yii forum says this is blank by default. There are two methods you can use to get common urls. How can i change its default value so that i can use absolute u. When a yii application starts processing a requested url, the first step it takes is to parse the url into a route. Yii2 redirects all users to login page if not logged in accessbehavior. Auto redirect to base url redirects all non pages to home page on a multisit solved apparently, the trick is to place redirection code at the very beginning of the htaccess file. The fast, secure and professional php framework yiisoftyii2. Array keys are action ids, and array values are the corresponding action class in dot syntax e. Webuiconfigurationauthenticationl3 authenticationcaptive portal. Editarticle or arrays representing the configuration of the actions, such as the following. Say if the user should always go to after authentication and the welcome page, then the redirect url should be set as. This is why this solution is better suited for the advanced application template, unless you are. You can get rid of the web part of the url by moving all the files from the web folder to your applications root folder and changing the paths in index. Redirect url is used to redirect the user to a specific url irrespective the url that he requested.

574 981 843 1192 660 1424 517 132 942 607 87 513 1039 993 954 1278 1348 716 1389 1432 1131 1074 209 1112 471 1470 47 278 625 1090 1053 306 138 497