Wordpress MU-能够访问index.html和.php
我有一个索引Wordpress MU-能够访问index.html和.php,wordpress,.htaccess,redirect,Wordpress,.htaccess,Redirect,我有一个索引.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
.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]
我安装了一个名为Permalink Fix&Disable Canonical Redirects Pack的插件,你可以找到它