Need Urgent Help

Discussion in 'Search Engine Optimization' started by linkbsr, Nov 18, 2010.

  1. #1
    hi to all,

    i am facing these problem, how can i resolve these :

    "Search engines may think www.xyz.com and xyz.com are two different sites.You should set up a permanent redirect (technically called a "301 redirect") between these sites. Once you do that, you will get full search engine credit for your work on these sites. "

    Plz give me valuable suggestion
     
    linkbsr, Nov 18, 2010 IP
  2. willson.andrew123

    willson.andrew123 Greenhorn

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    whats your problem? You are giving the solution and asking for the suggestion. Its all depend on your choice. Do you want to keep www version or without www. Just do 301 redirect to a version that you don not want to have to your preferred one.
     
    willson.andrew123, Nov 18, 2010 IP
  3. linkbsr

    linkbsr Peon

    Messages:
    152
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I just want www. version. How can i do that. Plz tell me in details.
     
    linkbsr, Nov 18, 2010 IP
  4. willson.andrew123

    willson.andrew123 Greenhorn

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    Try this if you are using Apache server

    In your .htaccess file add the following code by replacing my-domain with your domain name:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www.my-domain.com$ [NC]
    RewriteRule ^(.*)$ http://www.my-domain.com/$1 [L,R=301]
     
    willson.andrew123, Nov 18, 2010 IP
  5. devjeetsingh

    devjeetsingh Well-Known Member

    Messages:
    466
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    150
    #5
    More Than Enough....:)
     
    devjeetsingh, Nov 18, 2010 IP
  6. linkbsr

    linkbsr Peon

    Messages:
    152
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have windows server. I have .asp platform. In this, what i have to do.
     
    linkbsr, Nov 18, 2010 IP
  7. willson.andrew123

    willson.andrew123 Greenhorn

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #7
    No this is not going to work with Windows Server. You have to work on IIS to do a redirect. I don't have experience with Windows Server. You can search on Google for IIS 301 redirect. You will find many helpful links like http://www.mcanerin.com/en/articles/301-redirect-iis.asp
     
    willson.andrew123, Nov 19, 2010 IP
  8. i21d

    i21d Member

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #8
    You can use the following code in your global include page which should then be added to every page of your site:

    <%
    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("REQUEST_URI")
    	Response.End
    End if
    %>
    Code (markup):
    For reference see the following:
    http://www.beyondink.com/howtos/301-redirect.php#ASP
     
    i21d, Nov 19, 2010 IP
  9. Quvincy

    Quvincy Peon

    Messages:
    189
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Last edited: Nov 19, 2010
    Quvincy, Nov 19, 2010 IP
  10. linkbsr

    linkbsr Peon

    Messages:
    152
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    i have a windows server, i want to redirect non-www version to www version. i have Plesk control Panel, plz tell me in details what steps i have to take.
     
    linkbsr, Nov 30, 2010 IP