Results 1 to 6 of 6

 

Thread: Questions for Seo Gurus on 301 Redirect

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Jan 2009
    Posts
    18
    Thanks
    0
    Thanked 1 Time in 1 Post


    Hi Everyone I have a doubt and want a sloution to that

    Suppose I have Site with URL

    ww.example.com
    www.example.co.uk
    example.co.uk
    example.co.uk/index.php like this all these sites are linked to only single url called i.e www.example.com,
    all i need to use a .htaccess for 301 redirect but my server is based on windows so what to do?

    Thanks In Advance
    Sandeep
    _____________________________________
    Experts

  2. #2
    Avera Solutions Limited

    Status
    Offline
    Join Date
    Jun 2008
    Location
    London
    Posts
    88
    Thanks
    0
    Thanked 7 Times in 6 Posts
    Create a PHP header redirect...

    PHP: PHP Header 301 Redirect - Moved Permanently
    Website & Affiliate Manager
    Avera Solutions Limited
    Web Design

  3. #3
    SEO Consultant

    Status
    Offline
    Join Date
    Apr 2007
    Location
    London
    Posts
    261
    Thanks
    1
    Thanked 22 Times in 11 Posts
    Hi,

    For a windows server (IIS) do the next:

    a. In internet services manager, right click on the file or folder you wish to redirect.
    b. Select "a redirection to a URL"
    c. Enter the redirection page.
    d. Check "The exact url entered above", and the "A permanent redirection for this resource".
    e. Click "Apply".

    That's it...

    Good luck
    James G. Evans - SEO Consultant - Learn SEO, online, at your office, anywhere! from £50/hour. Expect the best! Get exclusive access to my know-how! Learn SEO Now, limited availability.

  4. #4
    Registered User

    Status
    Offline
    Join Date
    Feb 2009
    Posts
    63
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Theres 301 redirect scripts for IIS too you know dude. just do a search on google for asp 301 redirect lolz

  5. #5
    Registered User

    Status
    Offline
    Join Date
    Feb 2009
    Posts
    63
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Just dug out the one I use. basically it checks to see if your not the real address and does a 301 to the real domain, this way it works on sites where you have multiple domains pointed at one lot of space!

    <%
    Dim basedomain 'the real domain that users should be redirected to permanently
    basedomain = "www.yoursite.co.uk" 'do not include the http:// prefix here, if no www is specified in the URL, just specify the domain...
    if( InStr(lcase(request.servervariables("HTTP_HOST")), basedomain) = 0) then
    Dim currentFullPath
    currentFullPath = "http://" & request.servervariables("HTTP_HOST") & Request.ServerVariables("script_name") & "?" & Request.Querystring
    Dim newFullPath
    newFullPath = replace(currentFullPath, request.servervariables("HTTP_HOST"), baseDomain)
    Response.Status = "301 Moved Permanently"
    Response.AddHeader "Location",newFullPath
    'Response.Write("<H1>NEW: " & newFullPath & "</H1>")
    'Response.Write("<H1>FULL: " & currentFullPath & "</H1>")
    end if
    %>

  6. #6
    Negative SEO is fun!

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    1,389
    Thanks
    0
    Thanked 39 Times in 35 Posts
    Or now you could use the "rel = canonical" tag of course, which is obviously going to fix everything, ROFL



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What is a 301 redirect?
    By Dazza30 in forum Affiliate Marketing Lounge
    Replies: 17
    Last Post: 15-06-11, 04:46 AM
  2. Anybody a 301 redirect expert
    By andylink in forum Programming
    Replies: 8
    Last Post: 24-07-08, 11:42 PM
  3. Replies: 3
    Last Post: 08-07-08, 02:56 PM
  4. Replies: 2
    Last Post: 23-04-08, 02:26 PM
  5. 301 Redirect
    By seekituk in forum Affiliate Marketing Lounge
    Replies: 3
    Last Post: 15-04-07, 02:40 PM

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
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2