SEF News URLS, behaving odd

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
viebig

Re: SEF News URLS, behaving odd

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

Re: SEF News URLS, behaving odd

Post 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]
viebig

Re: SEF News URLS, behaving odd

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

Re: SEF News URLS, behaving odd

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

Re: SEF News URLS, behaving odd

Post by viebig »

add [solved] to the subject, so others can get benefits!
Post Reply

Return to “CMSMS Core”