Categories
Wordpress

解决 Wordpress 域名隐藏 index.php 后子目录无法访问

以 Apache 为例,只需在 .htaccess 文件中添加一个规则,比如我有一个images目录,需要添加以下规则

RewriteRule /images/(.*) /images/$1 [L]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

code