我在iis6上有一个wordpress网站,我希望这个: php?id = 6 看起来像这样: / postname / 。当我更改永久链接时,我收到404错误。我启用了IIRF代理扩展,在我的根目录中,我有一个带有以下代码的IIRF.ini:
RedirectRule ^/blog/index\.php/(.*)$ /blog/$1 [I,R=301]
RewriteRule ^/blog/(?!index\.php|wp-|xmlrpc)(.*)$ /blog/index.php/$1 [I,L]
此代码是否仅对/%postname%/的固定链接不正确?
由于
答案 0 :(得分:0)
我刚刚在运行IIS6的Windows Server 2003上安装了IIRF 2.1。
你的地址似乎从一开始就有/ blog /,但我担心我们可以做得更简单。贝娄,跟着我的整个Iirf.ini,一个简单的永久链接工作:
# Iirf.ini
#
# ini file for IIRF
#
RewriteEngine ON
StatusInquiry ON
IterationLimit 5
# this will allow ugly URLs to not be processed at all
RewriteRule ^/(?!index.php)(?!wp)([^\.]*)$ /index.php/$1 [I]
确保此简单表单有效,然后添加/ blog /.
一些可能有帮助的文献(它帮助了我)
干杯!