Y T Nuke  
Results 1 to 6 of 6
So I want to input the code below to the blog but where in the ...
  1. #1
    solidrock is offline Registered Member
    Join Date
    Jan 2010
    Posts
    51
    Reputation
    11
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default How to redirect a blog to another site???

    So I want to input the code below to the blog but where in the html code do I put it in??? This code is suppose to redirect to another site so how do I put it in??????

    <script language="javascript">
    document.location='YOUR AFFILIATE LINK HERE';
    </script>
    Last edited by solidrock; 01-14-2012 at 02:29 AM.

  2. #2
    Webghopper's Avatar
    Webghopper is offline Registered Member
    Join Date
    May 2011
    Posts
    58
    Reputation
    17
    Thanks
    51
    Thanked 18 Times in 15 Posts

    Default Re: How to redirect a blog to another site???

    You need to use a 301 redirect

  3. #3
    royalmice's Avatar
    royalmice is offline EXTREME MEMBER
    Join Date
    Aug 2007
    Location
    Over here --------------------------------->>------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Posts
    3,251
    Reputation
    214
    Blog Entries
    2
    Thanks
    1,049
    Thanked 931 Times in 332 Posts

    Default Re: How to redirect a blog to another site???

    I found these, maybe it is of help:

    The “301 Permanent Redirect” is the most efficient and search engine friendly method for redirecting websites. You can use it in several situations, including:

    to redirect an old website to a new address
    to setup several domains pointing to one website
    to enforce only one version of your website (www. or no-www)
    to harmonize a URL structure change

    There are several ways to setup a 301 Redirect, below I will cover the most used ones:

    PHP Single Page Redirect

    In order to redirect a static page to a new address simply enter the code below inside the index.php file.

    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.newdomain.com/page.html");
    exit();
    ?>

    PHP Canonical Redirect

    The Canonical 301 Redirect will add (or remove) the www. prefixes to all the pages inside your domain. The code below redirects the visitors of the http://domain.com version to http://www.domain.com.

    <?php
    if (substr($_SERVER['HTTP_HOST'],0,3) != 'www') {
    header('HTTP/1.1 301 Moved Permanently');
    header('Location: http://www.'.$_SERVER['HTTP_HOST']
    .$_SERVER['REQUEST_URI']);
    }
    ?>

    Apache .htaccess Singe Page Redirect

    In order to use this method you will need to create a file named .htaccess (not supported by Windows-based hosting) and place it on the root directory of your website, then just add the code below to the file.

    Redirect 301 /old/oldpage.htm /new/http://www.domain.com/newpage.htm

    Apache .htaccess Canonical Redirect

    Follow the same steps as before but insert the code below instead (it will redirect all the visitors accessing http://domain.com to http://www.domain.com)

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^domain.com [nc]
    rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

    ASP Single Page Redirect

    This redirect method is used with the Active Server Pages platform.

    <%
    Response.Status="301 Moved Permanently"
    Response.AddHeader='Location','http://www.new-url.com/'
    %>

    ASP Canonical Redirect

    The Canonical Redirect with ASP must be located in a script that is executed in every page on the server before the page content starts.

    <%
    If InStr(Request.ServerVariables("SERVER_NAME"),"www" ) = 0 Then
    Response.Status="301 Moved Permanently"
    Response.AddHeader "Location","http://www."
    & Request.ServerVariables("HTTP_HOST")
    & Request.ServerVariables("SCRIPT_NAME")
    End if
    %>
    Last edited by royalmice; 01-14-2012 at 10:38 AM.


    Affiliates - Sign Up here - Recurring Commissions | CLICK HERE FOR FREE REVIEW COPY

  4. The Following User Says Thank You to royalmice For This Useful Post:

    solidrock (01-14-2012)

  5. #4
    babasss's Avatar
    babasss is offline Junior Member
    Join Date
    Jul 2010
    Posts
    142
    Reputation
    10
    Thanks
    95
    Thanked 146 Times in 30 Posts

    Default Re: How to redirect a blog to another site???

    Quote Originally Posted by ariantilisa29 View Post
    how to make it ?
    you hear about g00gle?
    Ohh, i forget to say: "sorry for my english" - i work on it...

  6. #5
    solidrock is offline Registered Member
    Join Date
    Jan 2010
    Posts
    51
    Reputation
    11
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default Re: How to redirect a blog to another site???

    Quote Originally Posted by babasss View Post
    you hear about g00gle?
    Useless comment, why even bother posting that???

  7. #6
    royalmice's Avatar
    royalmice is offline EXTREME MEMBER
    Join Date
    Aug 2007
    Location
    Over here --------------------------------->>------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Posts
    3,251
    Reputation
    214
    Blog Entries
    2
    Thanks
    1,049
    Thanked 931 Times in 332 Posts

    Default Re: How to redirect a blog to another site???

    You are welcome......

Dot Gov Backlinks Sale


Smarter Submit

Similar Threads

  1. Best wordpres plugins
    By Xaviers in forum Black Hat SEO
    Replies: 1
    Last Post: 02-24-2012, 07:25 PM
  2. Replies: 60
    Last Post: 10-07-2011, 07:54 AM
  3. Replies: 6
    Last Post: 12-22-2008, 05:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76