news.php.net rewrite rules

php.internals

Derick Rethans

22 years ago
Hello, I just added a rewrite rule to the http://news.php.net site which makes: http://news.php.net/<group>/<articlenr> into: http://news.php.net/article.php?group=<group>&article=<articlenr> which gives much nicer URLs, like: http://news.php.net/php.internals/9828 regards, Derick

Gabor Hojtsy

22 years ago
> I just added a rewrite rule to the http://news.php.net site which makes: > http://news.php.net/<group>/<articlenr> into: > http://news.php.net/article.php?group=<group>&article=<articlenr> > > which gives much nicer URLs, like: > http://news.php.net/php.internals/9828
Should I update the code to emit these kind of URLs? I have not seen you doing it... Goba

Derick Rethans

22 years ago
On Mon, 21 Jun 2004, Gabor Hojtsy wrote:
> > I just added a rewrite rule to the http://news.php.net site which makes: > > http://news.php.net/<group>/<articlenr> into: > > http://news.php.net/article.php?group=<group>&article=<articlenr> > > > > which gives much nicer URLs, like: > > http://news.php.net/php.internals/9828 > > Should I update the code to emit these kind of URLs? I have not seen you > doing it...
I'm not sure how to. I think it involves changing the news grabbing code and that's part of columbus. Derick

Gabor Hojtsy

22 years ago
>>>I just added a rewrite rule to the http://news.php.net site which makes: >>>http://news.php.net/<group>/<articlenr> into: >>>http://news.php.net/article.php?group=<group>&article=<articlenr> >>> >>>which gives much nicer URLs, like: >>>http://news.php.net/php.internals/9828 >> >>Should I update the code to emit these kind of URLs? I have not seen you >>doing it... > > I'm not sure how to. I think it involves changing the news grabbing code > and that's part of columbus.
cvs.php.net/php-master-web has the code (index.php, group.php, etc). These print out the links. Goba

Gabor Hojtsy

22 years ago
>>>> I just added a rewrite rule to the http://news.php.net site which >>>> makes: >>>> http://news.php.net/<group>/<articlenr> into: >>>> http://news.php.net/article.php?group=<group>&article=<articlenr> >>>> >>>> which gives much nicer URLs, like: >>>> http://news.php.net/php.internals/9828 >>> >>> Should I update the code to emit these kind of URLs? I have not seen you >>> doing it... >> >> I'm not sure how to. I think it involves changing the news grabbing code >> and that's part of columbus. > > cvs.php.net/php-master-web has the code (index.php, group.php, etc). > These print out the links.
Uhm, ehm, php-news-web Goba

Derick Rethans

22 years ago
On Mon, 21 Jun 2004, Gabor Hojtsy wrote:
> > cvs.php.net/php-master-web has the code (index.php, group.php, etc). > > These print out the links. > > Uhm, ehm, php-news-web
I see. Well, go ahead i'd say ;-) Derick

Gabor Hojtsy

22 years ago
>>>cvs.php.net/php-master-web has the code (index.php, group.php, etc). >>>These print out the links. >> >>Uhm, ehm, php-news-web > > I see. Well, go ahead i'd say ;-)
Could you please make the rewrite work without the post number (ie. only the group name: http://news.php.net/php.internals) to map to the gruop post list. It does not seem to work now. Goba

Derick Rethans

22 years ago
On Mon, 21 Jun 2004, Gabor Hojtsy wrote:
> >>>cvs.php.net/php-master-web has the code (index.php, group.php, etc). > >>>These print out the links. > >> > >>Uhm, ehm, php-news-web > > > > I see. Well, go ahead i'd say ;-) > > Could you please make the rewrite work without the post number (ie. only > the group name: http://news.php.net/php.internals) to map to the gruop > post list. It does not seem to work now.
How should we do the prev and next for post listings with short urls? regards, Derick

Derick Rethans

22 years ago
On Mon, 21 Jun 2004, Derick Rethans wrote:
> On Mon, 21 Jun 2004, Gabor Hojtsy wrote: > > > >>>cvs.php.net/php-master-web has the code (index.php, group.php, etc). > > >>>These print out the links. > > >> > > >>Uhm, ehm, php-news-web > > > > > > I see. Well, go ahead i'd say ;-) > > > > Could you please make the rewrite work without the post number (ie. only > > the group name: http://news.php.net/php.internals) to map to the gruop > > post list. It does not seem to work now. > > How should we do the prev and next for post listings with short urls?
And we also need to change the templates to use the stylesheet and images from / ... Derick

Gabor Hojtsy

22 years ago
>>>>>cvs.php.net/php-master-web has the code (index.php, group.php, etc). >>>>>These print out the links. >>>> >>>>Uhm, ehm, php-news-web >>> >>>I see. Well, go ahead i'd say ;-) >> >>Could you please make the rewrite work without the post number (ie. only >>the group name: http://news.php.net/php.internals) to map to the gruop >>post list. It does not seem to work now. > > How should we do the prev and next for post listings with short urls?
Currently the code passes over a post number from which the page lists the 20 next entries. So it can be something like /<group-name>/page/<start-number> or similar... Goba

Jim Winstead

22 years ago
On Mon, Jun 21, 2004 at 04:29:20PM +0200, Gabor Hojtsy wrote:
> >>>>>cvs.php.net/php-master-web has the code (index.php, group.php, etc). > >>>>>These print out the links. > >>>> > >>>>Uhm, ehm, php-news-web > >>> > >>>I see. Well, go ahead i'd say ;-) > >> > >>Could you please make the rewrite work without the post number (ie. only > >>the group name: http://news.php.net/php.internals) to map to the gruop > >>post list. It does not seem to work now. > > > >How should we do the prev and next for post listings with short urls? > > Currently the code passes over a post number from which the page lists > the 20 next entries. So it can be something like > /<group-name>/page/<start-number> or similar...
why? just set it up to use a parameter. http://lists.php.net/php.internals?start=10653 jim

Derick Rethans

22 years ago
On Mon, 21 Jun 2004, Derick Rethans wrote:
> On Mon, 21 Jun 2004, Gabor Hojtsy wrote: > > > > cvs.php.net/php-master-web has the code (index.php, group.php, etc). > > > These print out the links. > > > > Uhm, ehm, php-news-web > > I see. Well, go ahead i'd say ;-)
Done with this now. regards, Derick