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.
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

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

If you had something like:


... 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.


Andy (mod)
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!