.htaccess读取服务器上任何动态子域的internal index.php

.htaccess读取服务器上任何动态子域的internal index.php,php,apache,.htaccess,mod-rewrite,Php,Apache,.htaccess,Mod Rewrite,我的新项目将具有动态子域名,例如: aa.mysite.com;ac.mysite.com等 如何在任何请求的子域*.mysite.com上使用位于mysite.com/subdomains/index.php中的文件作为默认index.php 请注意-我不想重定向,只想加载提到的index.php文件 请帮助,提前谢谢我想这在.htaccess中是不可能的,这应该在Apache的虚拟主机配置中完成 使用通配符virtualhosts为动态子域指定documentroot 在此之前,会提出一个与

我的新项目将具有动态子域名,例如: aa.mysite.com;ac.mysite.com等

如何在任何请求的子域*.mysite.com上使用位于mysite.com/subdomains/index.php中的文件作为默认index.php

请注意-我不想重定向,只想加载提到的index.php文件


请帮助,提前谢谢

我想这在.htaccess中是不可能的,这应该在Apache的虚拟主机配置中完成

使用通配符virtualhosts为动态子域指定documentroot

在此之前,会提出一个与.htaccess相关的问题,但不是针对apache配置: