尝试将子域URL重定向到子目录索引

时间:2019-07-03 22:50:42

标签: html .htaccess redirect

子域:

  

live.mysite.com

子目录文件指向:

  

/my-admin/src/index.html

.htaccess:

RewriteEngine On

#If the host is "sub.domain.com"
RewriteCond %{HTTP_HOST} ^live.mysite.com$ [NC]
#Then rewrite any request to /folder
RewriteRule ^((?!folder).*)$ /my-admin/src/$1 [NC,L]

导致内部500错误。我想念什么吗?

0 个答案:

没有答案