Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Mod_rewrite for PHP template

 
Goto page Previous  1, 2
   Web Hosting Problem Solving Community! (Home) -> Webmaster RSS
Next:  Popup Images  
Author Message
gary1

External


Since: Jul 01, 2003
Posts: 50



(Msg. 16) Posted: Mon Mar 15, 2004 12:34 am
Post subject: Re: Mod_rewrite for PHP template [Login to view extended thread Info.]
Archived from groups: freeserve>webspace>authoring, others (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]