我有WordPress安装在www.marcou.it/wp
,我将它设置为默认目录。所以如果我输入marcou.it
,浏览器必须向我展示WordPress。htaccess规则不起作用
我已经设置这些规则:
RewriteEngine On #Created by aruba. Do not touch this file!
#ATTENTION: Remove file index.(php|html|htm)
RewriteCond %{REQUEST_URI} !^/wp
RewriteRule ^(.*)$ wp/$1 [L]
但是,如果我去www.marcou.it
,我得到这个返回:
未找到
请求的URL /wp/index.htm在这个服务器上没找到。
什么问题?
我建议只是将你的WordPress安装移动到根目录而不是重写。 – doublesharp 2013-04-04 16:29:52