全球主机交流论坛
标题:
求个WP的伪静态规则
[打印本页]
作者:
malbi
时间:
2013-3-26 10:45
标题:
求个WP的伪静态规则
刚安装的wp不会搞伪静态
求个规则
作者:
阿里云
时间:
2013-3-26 10:46
官方就有
http://codex.wordpress.org/zh-cn:%E4%BD%BF%E7%94%A8%E5%9B%BA%E5%AE%9A%E9%93%BE%E6%8E%A5
作者:
iyuheng
时间:
2013-3-26 10:48
apache的.htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} ^wp-content.*
RewriteCond %{REQUEST_FILENAME} ^wp-admin.*
RewriteCond %{REQUEST_FILENAME} ^wp-include.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
复制代码
IIS的web.config
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
</rules>
</rewrite>
复制代码
nginx
if (!-e $request_filename){
rewrite (.*) /index.php;
}
复制代码
作者:
Xy1on
时间:
2013-3-26 10:50
iyuheng 发表于 2013-3-26 10:48
apache的.htaccessIIS的web.confignginx
好专业啊
作者:
zicca
时间:
2013-3-26 11:24
lnmp安装的时候选择就可以啊
欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/)
Powered by Discuz! X3.4