Question

Topic: SEO/SEM

Canonical Redirect

Posted by Anonymous on 130 Points
How do you set up a canonical redirect on the following:
Linux server?
Windows server?
Thru go daddy?

Have I left out any other scenarios?
To continue reading this question and the solution, sign up ... it's free!

RESPONSES

  • Posted by excellira on Accepted
    You can do a domain forward within GoDaddy.

    On the second page that bhopps provided take a look at:

    IIS Redirect

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


    AND for Linux:


    Redirect to www (htaccess redirect)

    Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
    The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

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

    Please REPLACE domain.com and www.domain.com with your actual domain name.

    Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.
  • Posted by excellira on Member
    "You can do a domain forward within GoDaddy. "

    Note: should mention that this would forward an entire domain to another domain but wold not be helpful for canonicalizing URLs.
  • Posted on Author
    I understand how to forward to a url in IIS, but how do I do it using only 1 ip address using non virtual hosting.
  • Posted by excellira on Member
    Apache or IIS?
  • Posted on Author
    IIS for all domains
  • Posted on Author
    Trinity,

    I have noticed now for sometime your responses. I would like to say publicly on this forum, you are a shining light in the SEM - SEO world. I truly appreciate you being a resource to the people who have posted in this forum.

    I appreciate your answers to a few of our questions as well. I must tell you that we have been trying to "sniff" out a few people who have been guiding a few of our clients the absolute "WORST" way by tracking them down.

    We have successful acquired the information we needed to best help a few clients who were being steered to the dark side of SEO.

    Now that we have accomplished this, I wanted to elaborate on who we are...and foremost, Thank you for your being such a great resource to other business owners.

  • Posted by excellira on Member
    Will this work? https://tinyurl.com/c2pm25
  • Posted by excellira on Member
    Oops. Zenergy, my session was stale so I didn't see your last post until after mine. Many thanks for your kind words - they're appreciated.

    Best Regards,

    Greg



Post a Comment