Page 1 of 1

How to get MLE News work with pretty urls?

Posted: Thu Oct 15, 2009 8:34 am
by hulio
When I put this line to .htaccess-file, everything else works well but the news:

RewriteRule ^([^/]+)/(.*)$ index.php?page=$2&hl=$1 [QSA]


The news are still showing like this:

http://www.domain.com/index.php?mact=Ne ... d=61&hl=fi


Thanks for your help!

Re: How to get MLE News work with pretty urls?

Posted: Thu Oct 22, 2009 7:59 pm
by alby
hulio wrote: When I put this line to .htaccess-file, everything else works well but the news:

RewriteRule ^([^/]+)/(.*)$ index.php?page=$2&hl=$1 [QSA]


The news are still showing like this:

http://www.domain.com/index.php?mact=Ne ... d=61&hl=fi
That rule works with http://www.domain.com/index.php?page=xxx&hl=yyy only

Look in http://wiki.cmsmadesimple.org/index.php ... stallation
and change in accord with MLE

Alby

Re: How to get MLE News work with pretty urls?

Posted: Thu Nov 05, 2009 12:10 pm
by hulio
Sorry, can't really get it work.

The url, I'm trying to convert goes:

http://www.domain.com/index.php?mact=Ne ... d=61&hl=fi


Pls, give me ur help. Thanks!

Re: How to get MLE News work with pretty urls?

Posted: Fri Feb 12, 2010 9:17 pm
by AmandaBTO
I'm also having problems with mle, news and pretty urls.

My .htaccess has:
RewriteRule ^(.+)/(.+)$ index.php?hl=$1&page=$2 [QSA]

to rewrite .../es/news/11/117/title-of-news-item/ to index.php?hl=es&page=news/11/117/title-of-news-item/

The pretty urls fails (404) but manually changing it to what it should rewrite to works.

Ideas?
Thanks
amanda

Re: How to get MLE News work with pretty urls?

Posted: Fri Feb 12, 2010 9:25 pm
by AmandaBTO
Success!
And then I found this forum post http://forum.cmsmadesimple.org/index.ph ... #msg174529

There is a htaccess.mle file in /doc of the MLE package which indicates :

>