Forum Moderators: open

Message Too Old, No Replies

Java Redirect is this a problem

java redirect affect se's

         

thehittmann

10:18 am on Nov 18, 2003 (gmt 0)

10+ Year Member



i have this cos on my page to redirect users. I have used a virtual spider to test this page and the redirection doesnt show up as a link. Would this code affect SE's. Seeing that google, yahoo, msn and hotbot are the only SE's that for some reason havent listed my site.

this is the code that I have on my page.

<SCRIPT LANGUAGE="JavaScript">
<!--
if ((self.location!= 'http://example.com/') && (top.location == location)) {
self.location = 'http://example.com/';
}
//-->
</SCRIPT>

Sinner_G

11:06 am on Nov 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some people say spiders (especially Google) are able to parse (i.e. recognises URLs) JS redirects, but nothing certain about that. If you want to be sure spiders find the other page, include a <noscript> tag. It will also help users with JS disabled.

thehittmann

11:17 am on Nov 18, 2003 (gmt 0)

10+ Year Member



so its a possability but no one knows for sure.
I'll add a noscript, thanks.