Page 1 of 1

Re: SEF News URLS, behaving odd

Posted: Mon Feb 02, 2009 3:33 pm
by viebig
The second number is the detail page that will be used to display the news.

maybe you can check http://forum.cmsmadesimple.org/index.ph ... 475.0.html

see item 5

Cheers

Re: SEF News URLS, behaving odd

Posted: Tue Feb 03, 2009 2:40 pm
by viebig
Try adding this rule to your htaccess, and then manually type the url how it was before, if it works, you will need to modify one file on the news module.. let me know

Code: Select all

RewriteRule ^news/([a-zA-Z0-9_-]+)/([0-9]+)/([0-9]+)/ news/$2/$3/$1/ [L]

Re: SEF News URLS, behaving odd

Posted: Tue Feb 03, 2009 5:24 pm
by viebig
action.default.php

look for the pretty url generated url, something like

Code: Select all

$prettyurl = 'news/'.$row['news_id'].'/'.($detailpage!=''?$detailpage:$returnid)."/$aliased_title";
and change it to

Code: Select all

$prettyurl = 'news/'.$aliased_title.'/'.$row['news_id'].'/'.($detailpage!=''?$detailpage:$returnid)."/";
Should do the job!

Re: SEF News URLS, behaving odd

Posted: Tue Feb 03, 2009 5:25 pm
by viebig
remember that if you upgrade that module or the whole system again, you´ll to do this same modification to action.default.php

Re: SEF News URLS, behaving odd

Posted: Tue Feb 03, 2009 6:25 pm
by viebig
add [solved] to the subject, so others can get benefits!