Module News with mod_rewrite

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
nchankov
New Member
New Member
Posts: 8
Joined: Wed Feb 11, 2009 11:21 am

Module News with mod_rewrite

Post by nchankov »

Just want to warn you that if you using mod_rewrite there is a problem with News module. The parameters which are passed by default are skipped, and for example lang parameter is not there.

Setting
$config['assume_mod_rewrite'] = false; solves the problem.

Does anyone have modified version of htaccess which passes all params as expected?

Thanks
nchankov
New Member
New Member
Posts: 8
Joined: Wed Feb 11, 2009 11:21 am

Re: Module News with mod_rewrite

Post by nchankov »

So,

in order to escape this problem, you could add

$prettyurl = false;
in /modules/News/action.default.php
on row 361.

It's just before
$onerow->link = $this->CreateLink($id, 'detail', $detailpage!=''?$detailpage:$returnid, '', $sendtodetail,'', true, false, '', true, $prettyurl);

I know it's quick and dirty, but at least now it's working. Unfortunately news doesnt' have pretty urls, but everything else is fine. I hope on next release this one will be fixed...

Anyway, hope this could help someone.
Post Reply

Return to “CMSMS Core”