2017-02-17 100 views
0

这里有一个情况2 WordPress站点,子目录网站给予404

我有example.orgexample.org/dev与下面的代码,我已经子目录“dev”作为子域即dev.example.org。这两个网站都是WordPress网站。

RewriteEngine on 

RewriteCond %{HTTP_HOST} ^(www\.)?example\.org$ 
RewriteRule ^dev/(.*)$ http://dev.example.org/$1 [L,QSA,R=301] 

现在的问题是 example.org工程确定,但我不能访问任何dev.example.org页面我在每一页获得404

更进一步,可湿性粉剂管理员被重定向到HTTPS/SSL虽然我已经将其设置为假(define('FORCE_SSL_ADMIN', false);)

任何帮助,高度赞赏

回答

1

请试试这个。它可能会帮助你。

[code autolinks=”false”] 
# 301 redirect for main pages 
RedirectMatch 301 ^/Your_dir/$ http://Your_domain.main_domain.com/ 
[/code]