Hi all,
I'm new to ModX and love so please be patient if I've missed anything.....
I'm having a problem with my site using babel. I've got two contexts going, Web & Thai.
I followed this tutorial
http://designfromwithin.com/blog-webdesign-development/2012/01/12/modx-multilingual-setting-up-babel-and-have-a-website-with-multible-languages/
I'm using wayfinder for the menu too. Babel appears to be working fine switching between the languages but it is when I navigate I have problems.
I have a container called 'about' and two more pages inside that container 'location' and 'village'.
When I click on 'about' the address in the address bar looks like 'www.mysite.com/about' but each time after I click on a page in that container it seems to add a subdomain to my address. eg. www.mysite.com/about/about/location. When it does this the content defaults back to the home page.
I'm using MODX Revolution 2.2.9-pl. I'm sure its got something do with the fURLs configuration.
Here is my .htaccess
RewriteEngine On
RewriteBase /
# Rewrite www.mysite.com -> mysite.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^mysite.com\.com [NC]
#RewriteRule (.*) http://mysite.com/$1 [R=301,L]
#
# or for the opposite domain.com -> www.domain.com use the following
# DO NOT USE BOTH
#
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^www\.example-domain-please-change\.com [NC]
#RewriteRule (.*) http://www.example-domain-please-change.com/$1 [R=301,L]
# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
# https://www.domain.com when your cert only allows https://secure.domain.com
#RewriteCond %{SERVER_PORT} !^443
#RewriteRule (.*) https://example-domain-please-change.com/$1 [R=301,L]
# The Friendly URLs part
# redirect all requests to /th/favicon.ico
# to /favicon.ico
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|th)/favicon.ico$ favicon.ico [L,QSA]
# redirect all requests to /th/assets*
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|th)/assets(.*)$ assets$2 [L,QSA]
# redirect all requests to /th/css*
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|th)/assets(.*)$ assets$2 [L,QSA]
# redirect all other requests to /th/*
# to index.php and set the cultureKey parameter
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(en|th)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA]
In the system settings in modx:
Use Friendly URLs : Yes
Use Strict URLs: No
Use Friendly alias path: Yes.
Does anyone have an idea where I may be going wrong?
Thank you in advance!