我有一個網站需要翻譯成三種外語。我通過系統 - >上下文創建了一個新的上下文,然後爲base_url,site_url和http_host創建了上下文設置。然而,當我在新的上下文中進入主頁時,它會從初始上下文路由到文件未找到的資源。任何想法我可能會錯過/做錯了什麼?ModX無法切換上下文
感謝
編輯:這是我的.htaccess文件
RewriteEngine On
RewriteBase/
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
(a lot of rewrite rules from an older version of the site that used .aspx files. None of them match with the URLs on the website)
# Add 'www' to the HTTP_HOST for all domains except seasidehotelshawaii.com
# this will also preserve the query string.
RewriteCond %{HTTP_HOST} !^(.*)[this_is_the_main_domain].com$
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
我不知道了很多關於.htaccess文件的註釋的行,但是這是在那裏。 this_is_the_main_domain.com是三個子站點的父項。我正在嘗試爲每個子站點創建三個上下文。
你對.htaccess做了什麼? –
@SeanKimball請參閱我的編輯 – symlink
您是否編輯了索引文件? – tsg