Answer the question
In order to leave comments, you need to log in
2 applications, 2 domains. What to write in htaccess?
There will be two applications host/www/site1 and host/www/site2.
Yii will be in host/www/framework
In vhost.conf, both domains (site1.ru, site2.ru) will refer to host/www.
It is worth noting that sites are not bulky, and the number of controllers ranges from 5 to 8 and they are different ( site1/action1, site1/action2, ... site2/action10, site2/action11). Therefore, without hesitation, I plan to scatter it in htaccess over applications like this.
Code: Select all
RewriteRule ^action1$ /site1/index.php?r=action1[L]
RewriteRule ^action2$ /site1/index.php?r=action2[L]
...
RewriteRule ^action10$ /site2/index.php?r=action10[L]
RewriteRule ^action11$ /site2/index.php?r=action11[L]
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question