301 Redirect GoDaddy

Do you want to 301 redirect mydomain.com to www.mydomain.com in order to prevent canonical problems with the search engines? It is possible to 301 redirect GoDaddy hosting, but at the time of this post, GoDaddy help files do not clearly explain how to get this done if your domain is not registered with GoDaddy, but you are still using them for hosting.

301 Redirect for Linux Hosting

If you have Linux hosting, GoDaddy help files say that they support .htaccess. To make your .htaccess file, open Notepad and copy / paste the following code:

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

Replace mydomain.com with the domain name that you want to redirect. Then you need to save your file:
file >> save as >> .htaccess
When you save your file, choose save as type “All Files” from the drop down menu at the bottom in Notepad. This prevents Notepad from turning your .htaccess file into a text file. Finally, using an ftp client, upload your .htaccess file onto the server where your homepage is located. Test your website to make sure that it is working.

Windows 7 Server Hosting

If your GoDaddy hosting is on Windows 7 Server, GoDaddy supports a web.config file for permanent 301 redirect. To get your redirect working, paste the following code onto Notepad:

        <rule name="Redirect to WWW" stopProcessing="true">
          <match url=".*" />
            <add input="{HTTP_HOST}" pattern="^mydomain.com$" />
          <action type="Redirect" url="http://www.mydomain.com/{R:0}"
               redirectType="Permanent" />

Then replace mydomain.com with the domain name that you would like to redirect. Next, you need to save your file:
file >> save as >> web.config
Choose save as type “All Files” from the drop down menu at the bottom in Notepad. Upload the web.config file onto the server where your homepage is located using an ftp client.

If this doesn’t work for you, call a GoDaddy representative and ask about the type of hosting that you have. The exact code that your server supports may be slightly different.

Did this solve your issue?

Visit Bigfin.com

This entry was posted in Search Engines, SEO, Technology and tagged , , , . Bookmark the permalink.

7 Responses to 301 Redirect GoDaddy

  1. Troy says:

    After DAYS of searching finally success think you so much for clear instructions!!!!!

  2. Albert says:

    wow thanks to this tutorial! finally I’ve got the answer for my question! I’ll try so many methods but I fail when I go to this site Im so very thankful! nice and clear intructions! Keep it UP! :)

    • Albert says:

      oppss I have another concern how about on how to block access by ip address for specific country like Philippines ip only? hehehe… thanks in advance! :D

  3. Monique says:

    I too have been searching and searching. We are moving our site from a template-driven provider. Our domain will remain the sames, but all of our other page names will change from very search engine unfriendly names to clear, simple names. We have very high organic rankings, so you can only imagine the ulcer I am developing. Can you tell me how to use web.config (I need to run on a windows server…. it does support web.config…. it is shared hosting so I cannot configure server) to redirect aspx files with parameter?
    ex. REDIRECT
    TO http:www.realestate-bigbear.com/search.html

    or this one (note the ?) … REDIRECT
    TO http://realestate-bigbear.com/watch/market-research.html

    Many many thanks in advance for any help you can give.

  4. Monique says:

    Thanks for the info. I have been to that page before… but am still not clear on how to do this with those PageIDs trailing the aspx .

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>