Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Change to dynamic question

Quote Reply
Change to dynamic question
Im using static URLs... I wish to change to dynamic.

I have a question before I do.
On the database field URL I use a "short" url that points to that exact page.
Example:
Original pagelocation: http://www.site.com/details/something/something/page_11L.html
Short url placed, shown and self linked within the detailed page: http://www.site.com/name

This way people can publish on personal visit card or newspaper or magazine their "short" link.

Question, if I change to dynamic will the mod rewrite affect that link? Its not simple text, its also linked to itsself, so the link exists.
I dont want it to change to http://www.site.com/cgi-bin/page.cgi?whatever...

Will it afect it? And if so, how can I prevent it.

Thanks in advance,

Juan Carlos
Quote Reply
Re: [Gorospe] Change to dynamic question In reply to
Hi,

Mmm.. I'm not quite sure how this could be approached.

If you had something like:

yoursite.com/p/short_bit

... then you could use:

RewriteRule ^p/(.*)$ /cgi-bin/paper.cgi?name=$1 [L]

Then, make a new script called paper.cgi, that gets the "ID" of the link, based on the "name" passed in.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates