php - Site in site apache2 -
hi all!
i have old site on clear php, new functionality start writing on yii2.
-- old site | -- index.php (old site) | -- yii2 | -- web | -- index.php (new site)
i need configure request on
site.ll/* -> index.php (old site)
site.ll/v2/* -> yii2/web/index.php (new site)
i trying this: alias /v2 /srv/site/yii2/web
alias not ported on nginx, need run configuration on apache , on nginx.
thanks!
just using rewrites:
rewriterule v2/*?$ /srv/old_site/yii2/web/index.php [nc,l] rewriterule v2/*?(.*)?/?$ /srv/old_site/yii2/web/index.php/$1 [nc,l] rewriterule v2/*?(.*)?/?(.*)?$ /srv/old_site/yii2/web/index.php/$1/$2 [nc,l]
Comments
Post a Comment