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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -