Gossamer Forum
Home : Products : Links 2.0 : Customization :

making jump.cgi?ID=x into a static link?

Quote Reply
making jump.cgi?ID=x into a static link?
wicked forum, lots of info, I apologize if this has been covered before. Is there a way to do this (I don't have mod_rewrite)... It's important that these links "appear" to be static. Any info would be great...Thanks!

Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
In Reply To:
I apologize if this has been covered before
There's no excuse for laziness. If you think this has been asked and aswered before, why don't you look for it?

--Drew
Links 2.0 stuff
http://www.camelsoup.com
Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
I *did* look for it, didn't find any info. If I missed it, I apologized. I'm looking for something a little more constructive than being called lazy. Thanks anyway.

Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
This won't make jump.cgi static, but it will make it appear a bit more like it is Wink

In link.html add;

Code:
<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_blank" ONMOUSEOVER="window.status='<%URL%>';return true;"
ONMOUSEOUT="window.status='';return true;"><%Title%></a>
Well, dunno if that was any help, but heck, its worth a try Laugh

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
In Reply To:
I *did* look for it, didn't find any info.
you're kidding right? A search for "status URL" and "real URL" turned up quite a bit of results, including:
http://www.gossamer-threads.com/p/26231
http://www.gossamer-threads.com/p/32079
http://www.gossamer-threads.com/p/42031
http://www.gossamer-threads.com/p/46800
http://www.gossamer-threads.com/p/128716
http://www.gossamer-threads.com/p/114777
http://www.gossamer-threads.com/p/89737
In Reply To:
I'm looking for something a little more constructive than being called lazy
I did more than call you lazy. Tongue In fact, I was kind enough to offer a method to find your solution.

--Drew
Links 2.0 stuff
http://www.camelsoup.com
Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
By "appear" in my original post I meant real indexable links that *all* search engines can follow (without the "?" in the URL), just like it is possible to do with mod_rewrite (that's why I mentioned it). Sorry for the confusion. I did view the posts you listed (among many others) before I posted, junko - they don't address what I'm after.

Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
Just change the jump.cgi link to <a href="<%URL%>">"><%Title%></a>

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
But then, of course, hits won't be counted...

Thomas
http://links.japanref.com
Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
Yeah but it is the only way to do it the way he wants Wink

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
In Reply To:
<a href="<%URL%>">"><%Title%></a>
should be;

<a href="<%URL%>"><%Title%></a>

Wink

Andy


webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
Thanks to all who posted - just what I needed as I'm not concerned with counting hits. Much apreciated.

Quote Reply
Re: making jump.cgi?ID=x into a static link? In reply to
Yeah my booboo - I originally had:

<a href="<%URL%>"<%Title%></a>

...so edited my post but must have got carried away Smile



Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: [Paul] making jump.cgi?ID=x into a static link? In reply to
In Reply To:
Just change the jump.cgi link to <a href="<%URL%>">"><%Title%></a>

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com
Paul,

This looks to be exactly what I need as well. Could you please tell me where exactly I implement this change?

Thanks a mil,

Jeff
Quote Reply
Re: [nuevojefe] making jump.cgi?ID=x into a static link? In reply to
In link.html, in the template directory. Note, what you posted has the error of the extra ">

<a href="<%URL%>">"><%Title%></a>

Should be <a href="<%URL%>"><%Title%></a>


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] making jump.cgi?ID=x into a static link? In reply to
Thanks alot, worked perfectly. A simple mod that is huge for people wanting to give you reciprocal links!



Regards
Quote Reply
Re: [nuevojefe] making jump.cgi?ID=x into a static link? In reply to
if you still want to count hits with the cgi? function - you can put the href="<%URL%>" anywhere on the link. i put mine on the description then set the font color to the normal text of the page and set the style to text-decoration: none on them and it looked exactly the same. hope that helps those who still wanna count clicks but also wanna help their se placement :)




Vote Stinky
Quote Reply
Re: [security_man] making jump.cgi?ID=x into a static link? In reply to
I looked into this for ages, eventually found a way. I'm on a redhat linux server running apache, this is how I can do it, different flavours of webserver might not be the same.

You need to learn up on url rewriting using .htaccess on your web server.

If you have the ability to do this then you need to invoke mod rewrite function via the .htaccess file something like this (heres mine) :

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [L]

RewriteRule ^\.htaccess$ - [F]

RewriteRule ^([^/]+)/$ jump.cgi?ID=$1 [L]

This means when the browser requests http://www.somedomain.com/cgi-bin/702 what actually gets called is http://www.somedomain.com/cgi-bin/jump.cgi?ID=702

That means the urls appear as followable by all manner of things, but hits still get counted by the script as its all happening normally as the script is concerned. The file must be called .htaccess (note the dot) and be placed in the root of the cgi-bin or wherever your jump.cgi is and affects all directories beneath it recursively.

Then in your link.html template change the site link to something like :

<a href="<%db_cgi_url%>/<%ID%>/"><b><%Title%></b></a>

and anywhere else where the jump.cgi file might be called.

Hope this helps :)

Quote Reply
Re: [roman365] making jump.cgi?ID=x into a static link? In reply to
Thanks...Small thing but very useful !!
>> Nakul Goyal (SEO, Link Building Expert)
Web Site Promotion
Tips 'n' Tricks
SEO News


Quote Reply
Re: [nakulgoyal] making jump.cgi?ID=x into a static link? In reply to
Nakul Goyal is Link Building Expert and he is just writing one or another line which is not much relevent to that post just to create his footer which has got link of its own site. He is making misuse of this great forum . He is just taking link our of it. Alex must ban such kind of practices
Quote Reply
Re: [megri] making jump.cgi?ID=x into a static link? In reply to
Megri, I would rather leave things on Alex and other GT administrators and moderators to decide and wont leave any public comments about somebody. These forums are here to dicuss about Gossamer Threads, it's products, development and plugins....!! I am a glad Links Users and I have been working with several people here.

Alex, and other moderators, if you feel I have done anything wrong here on these forums, feel free to delete my account altogether. But just in case that's not the point, I would like to know that these forums are to discuss what megri said or to discuss Gossamer.

P.S. > Take action against either of us. I present myself to your decision and what you people decide would be final for me. Delete my account and I would have no hard feelings if I am wrong please.....!!!
>> Nakul Goyal (SEO, Link Building Expert)
Web Site Promotion
Tips 'n' Tricks
SEO News


Quote Reply
Re: [roman365] making jump.cgi?ID=x into a static link? In reply to
You could probably put that rewrite rule directly into httpd.conf as well...
Interesting idea, as it would probably increase the indexing of links by Google etc.,
Blacknight Solutions - Hosting
Search.ie
Armchair.ie
Quote Reply
Re: [blacknight] making jump.cgi?ID=x into a static link? In reply to
I'm sure it prob would work in httpd.conf, never had that level of access to a linux server before, I've just used virtual hosting accounts etc. It certainly does increase the indexing of links Wink - and rapidly rolls up the overall hits counter if you have that mod, as well as the induvidual hits for each site, can make it a bit difficult to accurately assess traffic through the site but whos complaining when you see many different se bot user agents regularly rolling through :)
Quote Reply
Re: [roman365] making jump.cgi?ID=x into a static link? In reply to
Most of people do not have access to httpd.conf file as you need root access to the server to do that i think htaccess is the good method to do the Rewrite Mod
Megrisoft
Web Hosting Company
India Software Company
SEO Company


Last edited by:

megri: Mar 30, 2004, 3:15 AM