Page 1 of 1

[Solved] MLE and URL rewriting

Posted: Mon Mar 09, 2009 3:24 pm
by synergie
I try the script I have for CMSMS normal edition with CMSMS MLE to do URL rewriting :
RewriteEngine on
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

but now the switch between language does not work. Did you know how to do a correct rewritting with MLE?

Re: MLE and URL rewriting

Posted: Mon Mar 09, 2009 3:54 pm
by alby
synergie wrote: but now the switch between language does not work. Did you know how to do a correct rewritting with MLE?
Look htaccess.txt in doc folder

Alby

Re: MLE and URL rewriting

Posted: Mon Mar 09, 2009 4:10 pm
by synergie
alby wrote:
synergie wrote: but now the switch between language does not work. Did you know how to do a correct rewritting with MLE?
Look htaccess.txt in doc folder

Alby
perfect It is in : doc/htaccess.mle

Read FAQ: http://wiki.cmsmadesimple.org/index.php ... retty_URLs
From doc/htaccess.txt replace last rule:
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
with:
RewriteRule ^([^/]+)/(.*)$ index.php?page=$2&hl=$1 [QSA]