# news.php.net rewrite rules

- Thread: https://externals.io/message/10680
- Original archive: https://news-web.php.net/php.internals/10680
- Started by Derick Rethans on 2004-06-21T13:27:32+00:00
- Messages: 13
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #10680 — Derick Rethans — 2004-06-21T13:27:32+00:00

URL: https://externals.io/message/10680#10680

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

---

## #10683 — Derick Rethans — 2004-06-21T13:31:34+00:00

URL: https://externals.io/message/10680#10683 · In reply to: #10681

> > […]
>
> 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

---

## #10681 — Gabor Hojtsy — 2004-06-21T13:35:34+00:00

URL: https://externals.io/message/10680#10681 · In reply to: #10680

> 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

---

## #10684 — Gabor Hojtsy — 2004-06-21T13:49:43+00:00

URL: https://externals.io/message/10680#10684 · In reply to: #10683

> > […]
> 
> 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

---

## #10685 — Gabor Hojtsy — 2004-06-21T13:51:01+00:00

URL: https://externals.io/message/10680#10685 · In reply to: #10684

> > […]
> 
> 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

---

## #10686 — Derick Rethans — 2004-06-21T14:04:33+00:00

URL: https://externals.io/message/10680#10686 · In reply to: #10685

> > […]
>
> Uhm, ehm, php-news-web

I see. Well, go ahead i'd say ;-)

Derick

---

## #10688 — Gabor Hojtsy — 2004-06-21T14:17:18+00:00

URL: https://externals.io/message/10680#10688 · In reply to: #10686

> > […]
> 
> 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

---

## #10689 — Derick Rethans — 2004-06-21T14:19:38+00:00

URL: https://externals.io/message/10680#10689 · In reply to: #10688

> > […]
>
> 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

---

## #10690 — Derick Rethans — 2004-06-21T14:22:44+00:00

URL: https://externals.io/message/10680#10690 · In reply to: #10689

> 
>
> > […]
>
> 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

---

## #10691 — Gabor Hojtsy — 2004-06-21T14:29:20+00:00

URL: https://externals.io/message/10680#10691 · In reply to: #10689

> > […]
> 
> 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

---

## #10694 — Jim Winstead — 2004-06-21T17:13:40+00:00

URL: https://externals.io/message/10680#10694 · In reply to: #10691

> > […]
> 
> 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

---

## #10695 — Derick Rethans — 2004-06-21T17:26:21+00:00

URL: https://externals.io/message/10680#10695 · In reply to: #10694

> 
> > […]
>
> why?
>
> just set it up to use a parameter.
>
> http://lists.php.net/php.internals?start=10653

http://news.php.net/php.internals/start/10653 it is :)

Derick

---

## #10696 — Derick Rethans — 2004-06-21T17:42:30+00:00

URL: https://externals.io/message/10680#10696 · In reply to: #10686

> 
>
> > […]
>
> I see. Well, go ahead i'd say ;-)

Done with this now.

regards,
Derick
