PDA

View Full Version : Linking without affecting PageRank.



Shawn
11-03-2003, 08:50 PM
That's what I want to do.

On my wireless site, I don't want list coverage maps for each wireless company, but I want to link to them instead. I don't want the hassle of updating and finding decent looking maps, maps that are updated -- and the companies themselves don't provide updated maps, I've discovered.

Therefore, how can I create a link to an outside site that doesn't hurt my PR? I know JavaScript is used with document.write, but I haven't written JavaScript since I was 6 years old.

Help?

Chris
11-03-2003, 09:16 PM
Try making forms that redirect through a script

Shawn
11-03-2003, 09:30 PM
Um. What?

GCT13
11-03-2003, 10:26 PM
Take a look (view source) at the "Home", "Produce", "Promote", etc., buttons on the top nav of this page.

Or..

Create a redirection script like this

bye.php?link=http://www.coveragemap.com

..and disallow it thru robots.txt


I think that'll do what you want (someone can correct me if I'm wrong). Hope that helps.

chromate
11-04-2003, 05:42 AM
something like this:

<form method="post" action="http://www.coveragemaps.com">
<a href="#" onClick="javascript: this.form.submit();"> coverage map </a> </form>


OR


<script language="JavaScript">document.write('<a hr' + 'ef = "http://w' + 'ww.coveragemaps.org'">Coverage Maps</a>'); </script>

Chris
11-04-2003, 03:21 PM
Actually the top of this page is just form links, they don't redirect.

See this thread for how to do it with server side redirection:

http://www.websitepublisher.net/forums/showthread.php?s=&threadid=336

Most of the outgoing links on the main part of this site are redirected through a script.

In addition to stopped PR (if you ban the script via robots.txt or make it non-spiderable another way), is that you can count outgoing traffic.

GCT13
11-04-2003, 03:35 PM
The forms on the top nav of this site... can search engine spiders follow those links?

Chris
11-04-2003, 03:39 PM
Nope.

GCT13
11-04-2003, 03:44 PM
Cool.

And you did it that way because... you wanted to use images up there and didn't want to loose the contextual value of the text-based left navigation? (wild guess on my part)

Chris
11-04-2003, 04:45 PM
exactly.

s2kinteg916
11-05-2003, 12:21 AM
would this work
and is it even correct ?

<a href = "http://www.test.com" onclick = "self.href('http://www.test.com);">Test</a>

Percept
11-05-2003, 07:59 AM
Originally posted by s2kinteg916
would this work
and is it even correct ?

<a href = "http://www.test.com" onclick = "self.href('http://www.test.com);">Test</a>

I don't know if it's correct but Search engines will be able to find that link so you will still lose PR over it. I'll leave it up the others to explain how to do a good javascript link cause I'm not good with it myself.

Chris
11-05-2003, 08:51 AM
The safest javascript link is to actually print out the link using javascript's document.write() function. Like in Chromate's post above.

s2kinteg916
11-05-2003, 03:24 PM
so this would work ?

<form method="post" action="http://www.cars.com">
<a href="http://www.cars.com" onClick="javascript: this.form.submit();"> Cars.com </a> </form>

is that correct ?

Shawn
11-05-2003, 06:33 PM
That's what I was referring to, Chris, in my first post. The document write to split up the address - that's what a lot of major companies use to stop spam.

Chris
11-05-2003, 07:10 PM
Originally posted by s2kinteg916
so this would work ?

<form method="post" action="http://www.cars.com">
<a href="http://www.cars.com" onClick="javascript: this.form.submit();"> Cars.com </a> </form>

is that correct ?

No.

A search engine can still parse the red part and thus they'll see the link.