Question about the News module

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
jd

Question about the News module

Post by jd »

Hi,

I have the following question - I'm planning on using the news module for publishing articles. However, I don't want the url of the articles to be something of the sort http://localhost/news/14/22

I want it to be http://localhost/something/14/22

Anyone have the idea how to change this in the news module?
Thanks in advance
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Question about the News module

Post by Dr.CSS »

I beleive you would have to go thru the news module files and change every instance of news/News.

This would in essence create a new module.
jd

Re: Question about the News module

Post by jd »

This is a noobie question, I know, but how can I do that the easiest way?
The news module works fine for me, except for the addresses that it generates.
Pierre M.

Re: Question about the News module

Post by Pierre M. »

If you have mod_rewrite (apache or lighttpd), it should be straightforward without any code modification : one configuration line (RewriteRule)
PM
KoalaBlue
Forum Members
Forum Members
Posts: 39
Joined: Tue Sep 12, 2006 4:23 am

Re: Question about the News module

Post by KoalaBlue »

Hi, can anyone explain exactly how to do that?

where do we make the change?

thanx!
Pierre M.

Re: Question about the News module

Post by Pierre M. »

With mod_rewrite (see the doc on apache site : http://httpd.apache.org/docs/2.2/misc/rewriteguide.html), something like this in .htaccess :

RewriteEngine On
RewriteBase /
RewriteRule ^something/(.*)$ news/$1

not guaranted, but somewhat on the way 8-)

PM
Post Reply

Return to “Tips and Tricks”