Page 1 of 1

News module pretty url

Posted: Fri May 16, 2014 9:09 am
by sumpson
Hello everybody,

I have pretty url's set for my CMSMS installation, which creates a news url like:

/news/10/98/item.html
/news/13/98/item.html
/news/12/98/item.html

I would like to change this into:

/projects/item.html


Is there a way I can achieve this?

Thanks,

Philippe

Re: News module pretty url

Posted: Fri May 16, 2014 10:36 am
by chandra
Make a look at the News module Backend once again ;) - you can define an individual url for every article if you write a new article.

Re: News module pretty url

Posted: Fri May 16, 2014 10:59 am
by sumpson
Hmm, I suppose that's with the new version of News.

I am using CMSMS 1.8.2 and have tons of modifications which I am afraid might not work on a CMSMS update and could cost me days to fix. I rather keep everything working perfectly the way it is now and look for a Htaccess rewrite option.

I suppose it should be a bit like the following:

Code: Select all

RewriteRule ^(news+[0-9]+[0-9]+)$ /projects/$1/ [R]

Re: News module pretty url

Posted: Fri May 16, 2014 11:25 am
by staartmees
It isn't advisable to keep the old version 1.8.2; it's already 4 years old. Upgrade to 1.11.10 asap for the safety of your website. Also version 1.8.2 is no longer supported, http://forum.cmsmadesimple.org/viewtopi ... 40&t=30336

Re: News module pretty url

Posted: Fri May 16, 2014 11:30 am
by chandra
Replacing the numbers is not a good idea cause this is needed to identify the template id and the article id

Re: News module pretty url

Posted: Fri May 16, 2014 12:20 pm
by velden
You can not use .htaccess mod_rewrite to change urls that CMSMS generates.

Perhaps you're able to redirect to an url without the numbers but you will loose functionality like chandra says.