Page 1 of 1
Question about the News module
Posted: Wed Oct 04, 2006 12:24 pm
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
Re: Question about the News module
Posted: Wed Oct 04, 2006 5:14 pm
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.
Re: Question about the News module
Posted: Mon Oct 09, 2006 12:06 pm
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.
Re: Question about the News module
Posted: Mon Oct 09, 2006 12:08 pm
by Pierre M.
If you have mod_rewrite (apache or lighttpd), it should be straightforward without any code modification : one configuration line (RewriteRule)
PM
Re: Question about the News module
Posted: Sat Nov 04, 2006 4:56 am
by KoalaBlue
Hi, can anyone explain exactly how to do that?
where do we make the change?
thanx!
Re: Question about the News module
Posted: Sun Nov 05, 2006 7:46 pm
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
PM