Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress MU-能够访问index.html和.php_Wordpress_.htaccess_Redirect - Fatal编程技术网

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的插件,你可以找到它