如何使用 .htaccess 调用不同的索引文件?
我需要在我的网站上放置一个链接,我需要加载主页但具有不同的索引文件(index2.html),但网址是 www.mysite.com 而不是 www.mysite.com/index2.html
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?mysite\.com\index2.html$ [NC]
RewriteRule ^$ /index2.php [L]
以上规则无效。