Wordpress在Apache的重定向.htaccess怎么写
展开阅读全文

今天帮朋友在无忧主机服务商那边搭建一个WP网站,结果被重定向给坑的呀,因为本来是从nginx移植过来的,结果伪静态失效了,最后没有办法,找了好多资料,才有下面的这些。

wordpress .htaccess文件内容如下

DirectoryIndex filename.ext index.php index.htm index.html index.shtml forum.php
RewriteRule '/wp-admin$$' $scheme://$host$uri/ [L] 
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]