Wordpress 如何将index.html定向到index.php?

Wordpress 如何将index.html定向到index.php?,wordpress,.htaccess,Wordpress,.htaccess,如何将索引html直接指向wp index.php(Wordpress的最新版本)。我查看了canonical.php,但没有结果您可以使用所述的简单.htaccess规则 将其添加到网站根目录中的.htaccess文件中 感谢您的关注,但请使用默认wordpress htaccess。我试过了,但结果没有成功——这正是我想要做的——一个直接指向wordress脚本的html文件:) RewriteEngine On RewriteRule ^(.*)\.html$ $1.php [L]

如何将索引html直接指向wp index.php(Wordpress的最新版本)。我查看了canonical.php,但没有结果

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


将其添加到网站根目录中的.htaccess文件中

感谢您的关注,但请使用默认wordpress htaccess。我试过了,但结果没有成功——这正是我想要做的——一个直接指向wordress脚本的html文件:)
RewriteEngine On
RewriteRule ^(.*)\.html$ $1.php [L]