News module pretty url

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

News module pretty url

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

Re: News module pretty url

Post 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.
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

Re: News module pretty url

Post 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]
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: News module pretty url

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

Re: News module pretty url

Post by chandra »

Replacing the numbers is not a good idea cause this is needed to identify the template id and the article id
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: News module pretty url

Post 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.
Post Reply

Return to “Modules/Add-Ons”