我已经在我自己的服务器上为我的一个客户端设置了一个WordPress站点。当我准备将其传输到他的服务器时,我注意到他的主机使用Zeus而不是Apache。我以前从来没有用过宙斯。
唯一的问题是,宙斯没有使用mod_rewrite,所以永久链接不起作用。我在网上搜索了一下,找到了一个适合Zeus的rewrite.script,但问题是它的行为就像是在mod_rewrite路径中添加了/index.php/。
有没有人知道怎么去掉它,这样我的URL就会变成:
mydomain.com/index.php/friendly-url
至
mydomain.com/friendly-url?
这是我的rewrite.script文件
#Zeus webserver version of basic WordPress mod_rewrite rules
map path into SCRATCH:path from %{URL}
look for file at %{SCRATCH:path}
if exists then goto END
look for dir at %{SCRATCH:path}
if exists then goto END
##### FIX FOR LOGIN/FORGOTTEN PASSWORD/ADMIN ETC #####
match URL into $ with ^/wp-.*$
if matched then goto END
##### FIX TO ALLOW SEARCH TO WORK #####
match URL into $ with ^/(.*)
set URL = /$1发布于 2010-12-09 06:49:30
找到了这个,看起来就是你要找的:http://www.adamchristie.co.uk/wordpress/seo-friendly-wordpress-urls-on-namesco-zeus-servers/
希望这能有所帮助!
https://stackoverflow.com/questions/4384246
复制相似问题