How to get MLE News work with pretty urls?

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
hulio
New Member
New Member
Posts: 8
Joined: Fri Jan 12, 2007 6:31 am

How to get MLE News work with pretty urls?

Post 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!
alby

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

Post 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
hulio
New Member
New Member
Posts: 8
Joined: Fri Jan 12, 2007 6:31 am

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

Post 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!
AmandaBTO
Forum Members
Forum Members
Posts: 51
Joined: Thu Aug 09, 2007 2:40 pm

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

Post 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
AmandaBTO
Forum Members
Forum Members
Posts: 51
Joined: Thu Aug 09, 2007 2:40 pm

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

Post 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 :

>
Locked

Return to “[locked] CMSMS MLE fork”