 |

10-03-2007, 05:27 AM
|
|
WebProWorld Member
|
|
Join Date: Oct 2006
Location: Kolkata, India
Posts: 51
|
|
Can javascript redirect harm website
Hello,
Recently my client has used JavaScript redirect in html web page which is redirecting to asp web page. I know JavaScript redirect is temporary redirect and not search engine friendly. But my question is that, is it because of JavaScript redirect that we lost hits in last six months. They have done so at the end of May 2007. Before that in April 2007 TBPR update, we lost few important web page page rank.
Also, the website is hosted in shared IP. My client is constantly asking for the reason & when I say it’s because of JavaScript redirect, they don’t agree with me.
What could be the reason for decline in hits?
SEO Gurus please help.
|

10-03-2007, 07:18 AM
|
 |
WebProWorld Veteran
|
|
Join Date: Aug 2007
Location: United Kingdom
Posts: 355
|
|
Re: Can javascript redirect harm website
Without seeing the site, we can't say, but the JavaScript redirect certainly isn't helping. Why do you not use a 301 redirect?
|

10-03-2007, 07:28 AM
|
|
WebProWorld Member
|
|
Join Date: Oct 2006
Location: Kolkata, India
Posts: 51
|
|
Re: Can javascript redirect harm website
Thanks tamecrow for ur quick reply,
As i said, the site is hosted in shared server, so they don't have access to change it.
For the site URL, I cant post it as my client don't want it.
Please help...
|

10-03-2007, 03:27 PM
|
 |
WebProWorld 1,000+ Club
|
|
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,191
|
|
Re: Can javascript redirect harm website
Obviously, an JavaScript redirect is going to cause issues in that search engines will probably see the redirect page as a "doorway page". If that's the case, it's possible that your site is being penalized.
From the Google Help Center
Webmaster Help Center - Cloaking, sneaky Javascript redirects, and doorway pages
(I'd recommend that you read the entire page.)
Quote:
"When Googlebot indexes a page containing Javascript, it will index that page but it cannot follow or index any links hidden in the Javascript itself."
"When a redirect link is embedded in Javascript, the search engine indexes the original page rather than following the link, whereas users are taken to the redirect target. Like cloaking, this practice is deceptive because it displays different content to users and to Googlebot, and can take a visitor somewhere other than where they intended to go."
"Note that placement of links within Javascript is alone not deceptive. When examining Javascript on your site to ensure your site adheres to our guidelines, consider the intent."
"Keep in mind that since search engines generally can't access the contents of Javascript, legitimate links within Javascript will likely be inaccessible to them (as well as to visitors without Javascript-enabled browsers). You might instead keep links outside of Javascript or replicate them in a noscript tag."
|
If you have not been tracking site statistics, it's going to be a little hard to figure out where the problem is originating from or precisely when the loss in traffic began.
You've asked for help in determining why you're losing hits but are unable to provide a URL. Without a URL, we cannot determine your targeted keywords or compare your site against any competitors, nor are we able to check the code in your pages, redirects or main site content.
Get a static dedicated IP address, lose the JavaScript redirect and you'll begin to see some improvements.
.02
|

10-03-2007, 04:38 PM
|
|
WebProWorld Pro
|
|
Join Date: Dec 2003
Location: Raymond, NH, USA
Posts: 112
|
|
Re: Can javascript redirect harm website
I've used JavaScript redirects with no problems BUT I also include a robot.txt tag that tells the search engine not to index this page. That way if the page is served up as a search result the visitor will be sent to the new page and eventually, the page will be dropped from the search index. (Sometimes you simply can't use a 301 redirect with certain hosting companies and sometimes I may choose to reuse the file at a later date, so the redirect may not be permanent.)
|

10-03-2007, 06:11 PM
|
|
WebProWorld Member
|
|
Join Date: Sep 2007
Posts: 47
|
|
Re: Can javascript redirect harm website
Why can't you do the redirect directly from the domain name registrar? Many supply this service.
|

10-03-2007, 06:36 PM
|
|
WebProWorld Pro
|
|
Join Date: Apr 2006
Location: Earth
Posts: 241
|
|
Re: Can javascript redirect harm website
Quote:
Originally Posted by Ann
As i said, the site is hosted in shared server, so they don't have access to change it.
|
We have several websites on a shared server and can use our own htaccess to 301 redirect.
You might want to ask your host if you can do that.
__________________
*** Free Tibet ***
|

10-03-2007, 07:40 PM
|
 |
WebProWorld Veteran
|
|
Join Date: Jan 2004
Location: California
Posts: 324
|
|
Re: Can javascript redirect harm website
I assuming the javascript is on an existing page. Why not add a text anchor link pointing to the new page as well.
somethinng like:
If you are not automatically forwarded please click the link below:
then add your new link.
That will also help the people who's browsers block javascript actions as malicious (more of these than you think). This could also be part of the reason why you are missing traffic.
|

10-03-2007, 11:06 PM
|
 |
WebProWorld Veteran
|
|
Join Date: Aug 2003
Location: Singapore
Posts: 524
|
|
Re: Can javascript redirect harm website
If possible, changing hosting that allows you to do a 301 redirect.
|

10-04-2007, 01:11 AM
|
|
WebProWorld Member
|
|
Join Date: Oct 2006
Location: Kolkata, India
Posts: 51
|
|
Re: Can javascript redirect harm website
First of all thanks to all of your for answering.
Quote:
Originally Posted by Dubbya
Obviously, an JavaScript redirect is going to cause issues in that search engines will probably see the redirect page as a "doorway page". If that's the case, it's possible that your site is being penalized.
From the Google Help Center
Webmaster Help Center - Cloaking, sneaky Javascript redirects, and doorway pages
(I'd recommend that you read the entire page.)
If you have not been tracking site statistics, it's going to be a little hard to figure out where the problem is originating from or precisely when the loss in traffic began.
You've asked for help in determining why you're losing hits but are unable to provide a URL. Without a URL, we cannot determine your targeted keywords or compare your site against any competitors, nor are we able to check the code in your pages, redirects or main site content.
Get a static dedicated IP address, lose the JavaScript redirect and you'll begin to see some improvements.
.02
|
I have read the webmaster guidelines & even showed it to client. According to them they have added only javascript redirect and removed all other contents from the web page.
I know without providing URL, its difficult to analyse the reason for fall in hits.
The client said that they have used this type of redirect two years back but not such fall in hits occurred at that time. I answered them that the pages earlier were not important web pages. This time they made changes in the main index web page which comes after a flash web page.
|

10-04-2007, 01:17 AM
|
|
WebProWorld Member
|
|
Join Date: Oct 2006
Location: Kolkata, India
Posts: 51
|
|
Re: Can javascript redirect harm website
@mawells
Quote:
|
I've used JavaScript redirects with no problems BUT I also include a robot.txt tag that tells the search engine not to index this page. That way if the page is served up as a search result the visitor will be sent to the new page and eventually, the page will be dropped from the search index. (Sometimes you simply can't use a 301 redirect with certain hosting companies and sometimes I may choose to reuse the file at a later date, so the redirect may not be permanent.)
|
Its a nice suggestion. Thank you.
@DoneInStyle
Quote:
|
Why can't you do the redirect directly from the domain name registrar? Many supply this service.
|
Can your please explain how to do it? I dont have any idea about it.
@blitzen
Quote:
We have several websites on a shared server and can use our own htaccess to 301 redirect.
You might want to ask your host if you can do that.
|
Correct me if I am wrong, htacess can be used in Linux server & not for windows server. If it can be done in Windows server, please do let me know any reference site to do it.
@craigmn3
Quote:
I assuming the javascript is on an existing page. Why not add a text anchor link pointing to the new page as well.
somethinng like:
If you are not automatically forwarded please click the link below:
then add your new link.
That will also help the people who's browsers block javascript actions as malicious (more of these than you think). This could also be part of the reason why you are missing traffic.
|
Thanks for the nice suggestion. This can be one of the reason.
@edhan
Quote:
|
If possible, changing hosting that allows you to do a 301 redirect.
|
I have already asked client to do so. But, according to Matt Cutt & few other SEO webmasters, It does not matters a lot & cannot harm a site in such a badly manner
|

10-04-2007, 01:33 AM
|
|
WebProWorld Member
|
|
Join Date: Oct 2006
Location: Kolkata, India
Posts: 51
|
|
Re: Can javascript redirect harm website
Also, from August 2007, few targeted keywords have lost their rankings in Google. Eralier keywords were ranking in top 20 & now they are in between of 50-100.
Is there any updation going in Google? When will TBPR update will happen as its almost 5 months over.
|

10-04-2007, 03:52 AM
|
|
WebProWorld New Member
|
|
Join Date: Jun 2007
Location: Cheshire, UK
Posts: 12
|
|
Re: Can javascript redirect harm website
It's my guess that you are using javascript redirects with the link hidden within.
Google will not follow those links, they are for humans, the bots won't see them. So Google (and other SE bots) are trying to crawl your previously ranking pages finding no content and gradually de-indexing them.
It is an absolute urgency that you address this issue immediately. You MUST arrange for search engine friendly redirects (301) and I suggest you get link building to try to recover as best you can.
As much as i hate to post a reference to wikipedia on an SEO matter, this page talks about URL redirection in a simple and concise format.
URL redirection - Wikipedia, the free encyclopedia
Last edited by kayd : 10-04-2007 at 03:54 AM.
Reason: grammar :)
|

10-04-2007, 04:15 AM
|
 |
WebProWorld Member
|
|
Join Date: Feb 2004
Location: London, UK
Posts: 72
|
|
Make sure it's the real cause, not just a possible cause
A drop in hits could have been caused by the Javascript redirect, but the only way to be sure it was this and not some other issue is to look at the timing. Did the drop happen immediately after the redirect was implemented? Did any other changes take place at the same time?
It would definitely be a good idea to implement one of the fixes suggested here, but getting back your lost traffic is the priority. You need to be sure you have correctly identified the actual cause - not just one possible cause. Otherwise you could be putting your main effort into something that is not the real priority.
|

10-04-2007, 05:15 AM
|
|
WebProWorld New Member
|
|
Join Date: Jun 2007
Location: Cheshire, UK
Posts: 12
|
|
Re: Can javascript redirect harm website
I just want to stress that javacript redirects are absolutely NOT search engine friendly and this is widely known by competent SEOs. It doesnt matter if the drop (in ranks) happened immediately after or a few days. Removing the content of an already ranking page and using a JS redirect to a new URL is NOT the way to go and is ALMOST CERTAINLY going to affect ranks.
So making sure 301 redirect is implemented SHOULD be the priority at this stage before anything else.
Make sure you also update your main navigation, sitemap and all existing internal static links to the new urls.
Last edited by kayd : 10-04-2007 at 05:18 AM.
|

10-04-2007, 05:24 AM
|
 |
WebProWorld Veteran
|
|
Join Date: Aug 2007
Location: United Kingdom
Posts: 355
|
|
Re: Can javascript redirect harm website
kayd is correct - Search engines on the whole cannot read JavaScript.
|

10-05-2007, 12:57 AM
|
|
WebProWorld Member
|
|
Join Date: Oct 2006
Location: Kolkata, India
Posts: 51
|
|
Re: Can javascript redirect harm website
Quote:
Originally Posted by kayd
It's my guess that you are using javascript redirects with the link hidden within.
Google will not follow those links, they are for humans, the bots won't see them. So Google (and other SE bots) are trying to crawl your previously ranking pages finding no content and gradually de-indexing them.
It is an absolute urgency that you address this issue immediately. You MUST arrange for search engine friendly redirects (301) and I suggest you get link building to try to recover as best you can.
As much as i hate to post a reference to wikipedia on an SEO matter, this page talks about URL redirection in a simple and concise format.
URL redirection - Wikipedia, the free encyclopedia
|
We are using the following javascript redirect:
<script language="JavaScript">
window.location="newpage.asp";
</script>
We have already created sitemap.xml with the new web page url. Google has indexed the new web page. Google usually indexed our website & its web pages in 15 days period.
Since the site is hosted in shared server, 301 redirect is not possible through IAS. I am looking for asp code to redirect it. Hope it works.
|

10-05-2007, 01:09 AM
|
|
WebProWorld Member
|
|
Join Date: Oct 2006
Location: Kolkata, India
Posts: 51
|
|
Re: Make sure it's the real cause, not just a possible cause
Quote:
Originally Posted by brucet
A drop in hits could have been caused by the Javascript redirect, but the only way to be sure it was this and not some other issue is to look at the timing. Did the drop happen immediately after the redirect was implemented? Did any other changes take place at the same time?
It would definitely be a good idea to implement one of the fixes suggested here, but getting back your lost traffic is the priority. You need to be sure you have correctly identified the actual cause - not just one possible cause. Otherwise you could be putting your main effort into something that is not the real priority.
|
As i said earlier, the javascript redirect happened in end of May 2007. Before that in April TBPR update we lost few important web page pagerank(5 to NA). After having a discussion in WPW & WMW, I came to know that this was a bug in April 2007 TBPR update and many reputed website & directory has lost its internal web page page rank. So I am assuming its all because of javascript redirect.
As it was an assumption, I am thinking what else could be reason for fall in hits. Was there any updates going on in Search engines?
|

10-05-2007, 01:58 AM
|
|
WebProWorld Member
|
|
Join Date: Oct 2006
Location: Kolkata, India
Posts: 51
|
|
Re: Can javascript redirect harm website
Quote:
Originally Posted by kayd
I just want to stress that javacript redirects are absolutely NOT search engine friendly and this is widely known by competent SEOs. It doesnt matter if the drop (in ranks) happened immediately after or a few days. Removing the content of an already ranking page and using a JS redirect to a new URL is NOT the way to go and is ALMOST CERTAINLY going to affect ranks.
So making sure 301 redirect is implemented SHOULD be the priority at this stage before anything else.
Make sure you also update your main navigation, sitemap and all existing internal static links to the new urls.
|
I know that javascript redirect is not search engine friendly. Yes, the drop in ranking started in June, which improved in July but again went down in August and also in September.
We need to remove the content from the existing page as the new page had the same content. I think you are correct, this only could be the reason for fall in hits. Thanks a lot for pointing it out.
I am suggesting them to redirect using ASP code.
Quote:
<%
Response.Status="301 Moved Permanently"
Response.AddHeader='Location','http://www.new-url.com/'
%>
|
It says that it is permanent redirect & I hope it will resolve my problem.
I am thankful to all of you for answering.
Last edited by Ann : 10-05-2007 at 02:33 AM.
|

10-05-2007, 03:06 AM
|
 |
WebProWorld 1,000+ Club
|
|
Join Date: Aug 2003
Location: Worldwide
Posts: 7,298
|
|
Re: Can javascript redirect harm website
Quote:
Originally Posted by Ann
Hello,
Recently my client has used JavaScript redirect in html web page which is redirecting to asp web page. I know JavaScript redirect is temporary redirect and not search engine friendly. But my question is that, is it because of JavaScript redirect that we lost hits in last six months. They have done so at the end of May 2007. Before that in April 2007 TBPR update, we lost few important web page page rank.
Also, the website is hosted in shared IP. My client is constantly asking for the reason & when I say it’s because of JavaScript redirect, they don’t agree with me.
What could be the reason for decline in hits?
SEO Gurus please help.
|
I am sorry if my suggestion was mentioned in the thread.
I read here that search engines do not understand JavaScript, and I agree.
But search engines understand the <noscript> tag. And in there you can add a link to the page you want to direct to.
In addition I would like to add an article about search engine friendly redirects we published on our site:
Search Engine Friendly Permanent Redirects - SEO Workers
|

10-05-2007, 11:15 AM
|
|
| |