Url重写Yii2 Restful api
我怎样才能写路由到URL的.htaccess
至
父主机是www.abc.com,这个域也被托管在具有.htaccess的文件夹中
rewriteengine on
IndexIgnore /
RewriteBase /
ReWriteCond %{HTTP_HOST} example.com
ReWriteCond %{REQUEST_URI} !example/
ReWriteRule ^(.*)$ example/$1 [L]
ReWriteCond %{HTTP_HOST} abc.com
ReWriteCond %{REQUEST_URI} !abc/web/
ReWriteRule ^(.*)$ abc/web/$1 [L]
PS:www.abc.com也在使用Yii2
链接地址: http://www.djcxy.com/p/36541.html