Looking For a Non 301 Redirect Solution

7 replies
  • SEO
  • |
If I don't want search engines to consider a domain or a page to have a permanent 301 redirection to another domain or page would putting the following code in the head section work?

In this example I would put the code in the index.html file to redirect to somedomainname.com

<head>
<script type="text/javascript">
<!--
window.location = "http://www.somedomainname.com"
//-->
</script>
</head>

If this doesn't do it then does anyone here know of a solid way to do a redirection without passing anything on like a 301 redirect does? Thanks
#301 #redirect #solution
  • Profile picture of the author micksss
    Any ideas out there on this one???
    Signature
    Web Hosting Reviews ► www.CastironHosting.com ◄ Read or Submit Feedback on Web Hosts.
    Web Hosting Coupons, Deals & Promos!

    Need a Virtual Private Server? www.VPSPlan.com
    {{ DiscussionBoard.errors[8176342].message }}
  • Profile picture of the author Mkcoy
    Banned
    I thought that SE's don't read javascript.
    {{ DiscussionBoard.errors[8176346].message }}
    • Profile picture of the author yukon
      Banned
      Originally Posted by Mkcoy View Post

      I thought that SE's don't read javascript.
      Doesn't matter If search engines can read javascript or not, the HTML page that the javaScript is on has to load first, so by the time the javascript loads the HTML has already loaded.

      OP, that code is a redirect for traffic, not search engines or bots.

      You can do a temporary 302 redirect.
      {{ DiscussionBoard.errors[8176425].message }}
  • Profile picture of the author micksss
    Thanks yukon, a redirect for traffic is exactly what I want, not for SE or bots.
    Signature
    Web Hosting Reviews ► www.CastironHosting.com ◄ Read or Submit Feedback on Web Hosts.
    Web Hosting Coupons, Deals & Promos!

    Need a Virtual Private Server? www.VPSPlan.com
    {{ DiscussionBoard.errors[8177117].message }}
  • Profile picture of the author Kevin Maguire
    Originally Posted by micksss View Post

    If I don't want search engines to consider a domain or a page to have a permanent 301 redirection to another domain or page would putting the following code in the head section work?

    In this example I would put the code in the index.html file to redirect to somedomainname.com

    <head>
    <script type="text/javascript">
    <!--
    window.location = "http://www.somedomainname.com"
    //-->
    </script>
    </head>

    If this doesn't do it then does anyone here know of a solid way to do a redirection without passing anything on like a 301 redirect does? Thanks
    Try
    <script type="text/javascript">// <![CDATA[
    window.location.replace("http://domaintosendtraffic");
    // ]]></script>
    {{ DiscussionBoard.errors[8177815].message }}
  • Profile picture of the author micksss
    Basically I want a solution where I can take the content from a penalized site and put it on a new domain. I would de-index the old domain and then put the javascript redirect code on each old page to redirect to the new domain pages, purely for visitors referred from links to the old domain pages not from search engine traffic. This is why I wanted to make sure the javascript redirect wouldn't pass any penalty on to the new domain like a 301 redirect does.
    Signature
    Web Hosting Reviews ► www.CastironHosting.com ◄ Read or Submit Feedback on Web Hosts.
    Web Hosting Coupons, Deals & Promos!

    Need a Virtual Private Server? www.VPSPlan.com
    {{ DiscussionBoard.errors[8182132].message }}
    • Profile picture of the author Hansons
      Originally Posted by micksss View Post

      Basically I want a solution where I can take the content from a penalized site and put it on a new domain. I would de-index the old domain and then put the javascript redirect code on each old page to redirect to the new domain pages, purely for visitors referred from links to the old domain pages not from search engine traffic. This is why I wanted to make sure the javascript redirect wouldn't pass any penalty on to the new domain like a 301 redirect does.
      You provided a good idea here, I'm going to research on this.

      There are lots of penalized sites, you need to find it, you can find them from any directory and other sources..

      And make use of that content because the content is not indexed in Google as it is removed from index so you can make use of that content and content would be fresh content.

      You can post on blogs as well and you can get benefit of content.
      Signature

      Is your website Hacked? Try -> www.sitebeak.com
      Is Google Analytics installed Properly? Test -> www.GAtective.com
      Impersonal Google search? Check -> www.impersonal.me

      {{ DiscussionBoard.errors[8182213].message }}

Trending Topics