如何将index.html指向index.php?

时间:2017-07-19 23:58:18

标签: wordpress .htaccess

怎么能做一个索引html直接到wp index.php(最新版本的Wordpress)。我查看了canonical.php,但没有结果

1 个答案:

答案 0 :(得分:0)

您可以使用here所述的简单.htaccess规则。

RewriteEngine On
RewriteRule ^(.*)\.html$ $1.php [L]

将此添加到您网站根目录中的.htaccess文件中。

相关问题