Announcement Announcement Module
Collapse

myhosting.com Forum Guidelines

Welcome to the myhosting.com Forums! The purpose of this forum is to allow you to discuss topics relating to hosting and topics of interest with other myhosting.com Customers. The primary focus should relate to issues not generally included in our Wiki or Control Panel, or information not provided by our Customer Support Team. Some examples include programming and coding support, web site design ideas and SEO practices.

The forum is not meant as a replacement to our Wiki or Customer Support. We highly recommend searching our Wiki before posting on the forum. Also, if you have a question for our Customer Support team, please contact them as you would normally.

We ask that if you have any complaints or questions relating specifically to your account, that you address them to our Customer Support department. Do not post personal account information such as passwords or other sensitive and private information the forum, as this type of information is best kept secret. Also, please be respectful of other users and refrain from defamatory comments or use of coarse language.

We will visit the forum from time to time, and contribute to various topics. We reserve the right to delete any posts which are deemed offensive or against the spirit of the forum. Any spamming or illegal activity will not be tolerated. We also reserve the right to block any user who violates these guidelines.

To get started, we welcome you to sign up at our User Management site. Any account created there will have access to these forums, our Wiki, our Ideas site and commenting permission on our Status Blog.
See more
See less
301 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 301

    How do you set up a 301 redirect on your web site?

  • #2
    if your site is hosted on a Linux Server you can use .htaccess for redirection
    Redirect Old domain to New domain
    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
    Redirect to www
    Code:
    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^domain.com [nc]
    rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
    if your site is hosted on a Windows Server you can use IIS Redirect
    Code:
    *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'
    You can also use server-side scripting for redirection

    Comment


    • #3
      Thank you for the above advice.

      The below code you gave above worked for me in an .htaccess redirect.

      Jim B.

      Options +FollowSymLinks
      RewriteEngine on
      RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

      Comment


      • #4
        In a shared windows hosting account that does not have direct access to IIS, you can create a redirect using your web.config file in the root of your website. Create that file and insert the code mentioned here:
        http://myhosting.com/kb/Create_301_redirects_in_onCloud

        Comment


        • #5
          In a shared windows hosting account that does not have direct access to IIS, you can create a redirect using your web.config file in the root of your website. Create that file and insert the code mentioned here:
          http://myhosting.com/kb/Create_301_redirects_in_onCloud

          Comment


          • #6
            an important point worth repeating twice

            http://www.imgsnatch.com/img/n/9.jpg

            Comment


            • #7
              out of date answers - links no longer exist

              Comment


              • #8
                Here's the new link:
                http://myhosting.com/kbm/public/EXTo...Entry&data=605

                Cheers

                Comment

                Working...
                X