Page 1 of 1

Module News with mod_rewrite

Posted: Wed Feb 18, 2009 2:31 pm
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

Re: Module News with mod_rewrite

Posted: Wed Feb 18, 2009 2:53 pm
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.