0
我得到了一個使用WordPress的主要網站,它設置在域的根。兩個WordPress的 - 主要在根,在子文件夾中的開發版本
我基本上希望有非常相同的WordPress的DEV版本中的子文件夾(使用複製數據庫),如/ dev/
問題,我得到的是,當我嘗試訪問開發版,主要WordPress的根似乎陷入了請求(htaccess?),並提供了一個「未找到」頁面。
這裏是我的根htaccess的:
# BEGIN WordPress
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
# MultiLingual domain
RewriteCond %{HTTP_HOST} ^(www.)?domain-other-language\.com* [OR]
RewriteCond %{HTTP_HOST} ^(www.)?domain-other-language2\.com*
RewriteRule (.*) http://www.main-domain.com/$1?lang=en [R=permanent,L]
# Alternate domain
RewriteCond %{HTTP_HOST} ^(www.)?other-domain\.com*
RewriteRule (.*) http://www.main-domain.com/$1 [R=permanent,L]
# this doesn't seem to work
RewriteRule ^dev/$ - [PT,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
奇怪的事情:如果我完全刪除DEV文件夾中的.htaccess文件(根文件的副本),那麼我可以查看DEV版本的WordPress。只要我將一個.htaccess文件(甚至是EMPTY)放入dev文件夾,根wordpress就會顯示它的404。 – ecchymose