I'm trying to get Babel to work on a site I'm making. And I want FURLs to work as well.
I can only get my start page to work for the original language.
But the .htaccess seems to have problems with any sub page in any of the languages.
In the attached image I have is the FURL settings i'm using.
And this is the htaccess file:
RewriteEngine On
RewriteBase /progress/ferinject
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(de|fr)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA,NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(de|fr)/favicon.ico$ favicon.ico [L,QSA,NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(de|fr)/assets(.*)$ assets$2 [L,QSA,NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(de|fr)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA,NC]
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
BrowserMatch "Opera" !brokenvary
SetEnvIf brokenvary 1 force-no-vary
When accessing any sub page I get a 310 error (too many redirects). Any suggestions of what I'm missing?
EDIT:
If htaccess looks like above, all the content under the "web" context works fine. But as soon as I go to the french version /fr/ I get the too many redirects error. If I then change this line:
RewriteRule ^(de|fr)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA,NC]
to (without &q=$2):
RewriteRule ^(de|fr)?/?(.*)$ index.php?cultureKey=$1 [L,QSA,NC]
then I can jump back and forward between the two languages, but obviously the sub pages doesn't work even though the address looks right.
Is it possible that q=$2 is messing it up for the second context?
EDIT2:
If I try using non friendly url it doesn't work either.
To the original context it works with the following:
progress/ferinject/index.php?cultureKey=de&q=1
but if I change to the french one with the correct id of the start page like:
progress/ferinject/index.php?cultureKey=fr&q=2
Than I get a "503 error page not found".
[ed. note: phacer last edited this post 11 years, 5 months ago.]