[Solved] MLE and URL rewriting

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
synergie
Forum Members
Forum Members
Posts: 14
Joined: Fri Nov 14, 2008 1:57 pm

[Solved] MLE and URL rewriting

Post 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?
Last edited by Anonymous on Mon Mar 09, 2009 4:10 pm, edited 1 time in total.
alby

Re: MLE and URL rewriting

Post 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
synergie
Forum Members
Forum Members
Posts: 14
Joined: Fri Nov 14, 2008 1:57 pm

Re: MLE and URL rewriting

Post 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]
Locked

Return to “[locked] CMSMS MLE fork”