In article <87fzcfiu6e.fsf RemoveThis @bigriver.doilywood.lan>,
tinnedmeat RemoveThis @doilywood.org.uk says...
> Gazza <gary RemoveThis @garyjones.co.uk.invalid> writes:
>
> > What I'd like, is for me to be able to link pages, *and users to be able
> > to type in page addresses*, as they previously were, but the backend of
> > the site to know, for instance, that /clubs/tabletennis/ actually means
> > /clubs/index.php?id=12.
>
> Sure you can do this with mod_rewrite but there doesn't seem to be any
> good way of linking tabletennis to id=12 without resorting to a load
> of rules.
The solution (see another thread) was to put a column into the table
which I've called club_tag, but could easily just be a unique id, which
when called just inserts the information from that particular row.
See a working (albeit incomplete) version by trying:
<a style='text-decoration: underline;' href="http://www.rossmore.org/club/art/" target="_blank">www.rossmore.org/club/art/</a> = <a style='text-decoration: underline;' href="http://www.rossmore.org/club/index.php?club=art" target="_blank">www.rossmore.org/club/index.php?club=art</a>
similarly for canoeing and climbing.
--
Gazza
<a style='text-decoration: underline;' href="http://www.rossmore.org/" target="_blank">http://www.rossmore.org/</a>
<a style='text-decoration: underline;' href="http://www.garyjones.co.uk/" target="_blank">http://www.garyjones.co.uk/</a>
"Some people don't listen, they simply wait to speak"<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Mod_rewrite for PHP template