Welcome to WebmasterWorld Guest from 54.145.136.73

Can a javascript redirect can harm my website?

Javascript redirect

   
6:40 am on Sep 1, 2007 (gmt 0)

5+ Year Member



Hello,

As I said in my earlier post, my client site lost its page rank for one of its most important page in April 2007 Update. This page is index page, which comes after a splash page.

From then I am having a constant decline in my hits. After analyzing the website web trends, I came to knew that they have redirected few of the pages from html to asp using a JavaScript redirect.

To my knowledge, I know itís a temporary redirect & this two page html & asp will be consider as two different page. I asked my client to change it to permanent redirect.

They are looking into the same but will take time. From my side, I submitted a fresh Google xml sitemap with asp web pages.

My only question is: Does the site hits decline just because of this javascript redirect and pagerank lost or could be any other reason?

4:16 pm on Sep 1, 2007 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Google is on the lookout for what they call sneaky javascript redirects [google.com], so yes, especially because it's combined with a splash page, this site might have tripped such a flag.

I know itís a temporary redirect & this two page html & asp will be consider as two different page. I asked my client to change it to permanent redirect.

If they intend to go back to the original url, you can use a 302 redirect - that's exactly its purpose.

does the site hits decline just because of this javascript redirect and pagerank lost or could be any other reason?

If PR went down, then the ranking for your key terms may have suffered. Webtrends should be able to tell you. I'd compare search terms bringing in search traffic now, compared to the terms and volume you saw historically.

The javascript is certainly one area to address, but rankings change for all kinds of reasons, including things known only to Google engineers as they test new ways of ranking.

I'd also add that, in my experience, splash pages are almost never an effective way to build a site.

6:09 pm on Sep 1, 2007 (gmt 0)

5+ Year Member



Pages should be redirected using .htaccess files

This code works for linux / apache servers not sure on windows IIS servers:

Create a file in a text editor save it as .htaccess

in the file use one of the two lines below for each page you wish to redirect...

redirect 301 /filename.ext [domain.tld...] # permanent redirect
redirect 302 /filename.ext [domain.tld...] # temp redirect

The 301 is for permanent redirects and the 302 is for temporary redirects (like redirecting index page to a down for maintenance page).

From what I know these are the ONLY acceptable ways to redirect a page which won't (longterm) affect your SERPs.

12:39 am on Sep 2, 2007 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Never redirect the root of a site to a deep internal page on the same domain. Use a rewrite to deliver that content at the root URL.
5:25 am on Sep 6, 2007 (gmt 0)

5+ Year Member



First of all thanks to all of you for answering my question.

@tedster

If PR went down, then the ranking for your key terms may have suffered. Webtrends should be able to tell you. I'd compare search terms bringing in search traffic now, compared to the terms and volume you saw historically.

The javascript is certainly one area to address, but rankings change for all kinds of reasons, including things known only to Google engineers as they test new ways of ranking.

I'd also add that, in my experience, splash pages are almost never an effective way to build a site.

In April 2007 update, we lost the page rank but till that time we did not lose any of our rankings. But then slowly we started loosing rankings for few of our keywords. The strange part is that we haven;t loosed search engine referrals. Its increasing every month. But still the total hits are declining.

@orionsweb

This code works for linux / apache servers not sure on windows IIS servers:

The site is running on windows server & also in shared IP addres.. So permanent redirecting is taking its time. Also only few web pages which were in html now redirecting to asp pages. Only these few pages require permanent redirect.

P.S. The client is noway ready to change any of its webpages design.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month