很多朋友在win主机下面安装wordpress,但是固定连接中会出现index.PHP,删除之后又出现404,首先我们建立一个.htaccess文件,然后输入如下代码:
wordpress content (i.e. theme),admin,etc.
RewriteRule ^/wp-(.*)$ /wp-$1 [L]
# For normal wordpress content,via index.PHP
RewriteRule ^/$ /index.PHP [L]
RewriteRule ^/(.*)$ /index.PHP/$1 [L]
原文链接:https://www.f2er.com/wordpress/67652.html