0

我有一个索引.html保留页面,但我想访问 wordpress 的.php. 我需要在我的 .htaccess 中放置什么来启用它?

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)(.*)$ [NC]
RewriteRule ^(.*)$ http://%2/$1 [L,R=301]
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
4

1 回答 1

0

我安装了一个名为Permalink Fix & Disable Canonical Redirects Pack的插件,你可以在这里找到它

于 2012-10-05T03:14:41.387 回答