Server Side Java Script Redirects
-
I would like to use a redirect through a server based Java script to redirect visitors only referenced from a certain site. So let's say anyone clicking on a link to my site page-A from seomoz.org would automatically be redirected to page-B. All other users as well as direct and search engine traffic would only see the regular page A. The reason I am doing this is because the linking site is linking to page A which doesn't serve the user the correct content. Rather than contacting the webmaster to change the link to point to page -B, I want to redirect them. Is there any danger of Google penalizing this for cloaking? and how would they be able to tell?
-
Ideally, if you do have any contact with the webmaster you'd be better off asking them to change it. If you don't, starting to network with people already willing to link to you is a great way to get more links anyway.
If you really don't want to try and speak with them (and again, you really should) then I have done something similar with affiliates; when they send a visitor I send them to a co-branded page based on the referral header, and haven't seen anything bad happen.
Although Google is getting better at reading javascript it still doesn't seem to follow links run in real time. As you're not intending to deceive the bot your use of it is fairly legit, but I couldn't tell you how it'd be interpreted once the datacentres have a look at it.
Here's the guidelines - http://www.google.com/support/webmasters/bin/answer.py?answer=66355 - up to you if you think you're breaking them
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Question about "sneaky" vs. non-sneaky redirects?
One of my client's biggest keyword competitors is using, what I believe to be, sneaky redirects. The company is a large, international corporation that has a local office. They use a totally unrelated domain name for local press and advertising, but there is no website. The anchor text in the backlinks automatically redirects to the corporate website. Is this sneaky or not?
White Hat / Black Hat SEO | | JCon7110 -
Magento Temporary Redirects?
Just checked my Crawl insights. I have 1981 on Moz 302 redirects - temp I'm not too familiar with Magento - however site domain has moved from .com to .co and although I have set a 301 redirect on the base domain through hta I am assuming it is also temporary redirecting things in the CMS itself? The temporary directs that the site is creating are still on the new domain - but are really odd! Eg Wishlist, Product compare links .co/wishlist/index/add/product/498/form_key/5e7CQkZ54tMSsJtwAnyone have ideas in regards to this?
White Hat / Black Hat SEO | | Kelly33301 -
Server down - What will happen to the SERP?
Hi everybody, we have a lot of websites (about 100) on one Server in Italy. This Server crashed 5 days ago and now it should go online (I hope!). What will happen to the SERP? What shall I do to recover the rank of every key? New links, new content, just wait...what? Tnks 😉
White Hat / Black Hat SEO | | Sognando0 -
301 redirect a set of pages to one landing page/URL?
I'm planning to redirect the following pages to one new URL/landing page: Old URLs: http://www.olddomain.com/folder/page/1 http://www.olddomain.com/folder/page/2 http://www.olddomain.com/folder/page/3 http://www.olddomain.com/folder/page/4 http://www.olddomain.com/folder/page/5 http://www.olddomain.com/folder/page/6 New URL: http://www.newdomain.com/new-folder/new-page Code in .htaccess that I will be using: RedirectMatch 301 /folder/page/(.*) http://www.newdomain.com/new-folder/new-page Let me know if this is correct. Thanks!
White Hat / Black Hat SEO | | esiow20130 -
Suggestions in redirecting an old URL to new URL with parenthesis () ?
What should I use in .htaccess if I will redirect an old URL with parentheses to a new URL like below? RedirectMatch 301 http://www.olddomain.com/buy/nike-shoes/kobe(7)/red http://www.newdomain.com/buy/nike-shoes/kobe(7)/red Or RedirectMatch 301 http://www.olddomain.com/buy/nike-shoes/kobe(7)/red http://www.newdomain.com/buy/nike-shoes/kobe(7)/red
White Hat / Black Hat SEO | | esiow20130 -
2 Questions about 301 Redirects
So I have a couple of questions about 301 redirects: Do Google penalties EVER pass through a 301? I've done 20+ domain 301s in the last year and have yet to see it happen, but the other day I read a an article (or maybe it was a QA post?) that suggested doing 302s to avoid transferring penalties. Has anyone seen any authoritative information regarding this? I 301'd a domain in February that another SEO firm had built a lot of spammy links and I began building contextual links for it at a very slow rate (like 10 or so a month). Within a month, my domain authority was a 26 on the new domain and my inbound links were non existent. By month 2, my links were 70k and domain authority was 34. By month 3, down to 25k inbound links and domain authority of 29, where it has settled for the last 3 months despite some really high quality links. My question (don't worry it's coming), is does anyone have any clue why my links shot up so quickly and then dropped? I'm assuming the 301 links kicked in and then only about 45% ended up 'sticking'?? Thanks in advance
White Hat / Black Hat SEO | | BrianJGomez0 -
Should I redirect old pages
I have taken over SEO on a site. The old people built thousands of pages with duplicate content. I am converting site to wordpress and was wondering if I should take the time to 301 redirect all 10,000 or so pages with duplicate content. The 10,000 pages all have links back to different to different pages as well as to the homepage. Should I just let them go to a 404 page not found.
White Hat / Black Hat SEO | | Roots70 -
Does 301 redirection will effect my site in the future?
Hello Guys, I am totally new to SEOMOZ.com, when I had issues with my website I asked one of my friend who does SEO he suggested me to implemented 301 redirection approximately 11 months a go, here is the URL of the website http://www.bharatdesi.com/hyderabad . Will Google ban my website from search engine results, what would be the worst scenarios. know there are really good SEO people who follow SEOMOZ everyday... Can any one here please suggest me with some good answers weather I have to remove 301 redirection or I can still keep the same until my home page gets redesigned. I don't really understand all the concepts of SEO, but if some one can help me with the good answers I can ask my developer to the same. Thank you
White Hat / Black Hat SEO | | Vinss0