Duplicate Content URLs, HTTP, and WWW

3 replies
  • SEO
  • |
I would like to know where on my hosting account could I find the .htaccess file. Also, what is the difference between these two URLS related to the issue of duplicate content and also what is the purpose of the http in the url:

http://www.makemoneyonlinesite.net


http://makemoneyonlinesite.net

Which one of these domain names should I use, when building links to my websites' home page, as well as to deeper web pages?
#content #duplicate #http #urls #www
  • Profile picture of the author aaron_nimocks
    You should pick one and stick to it because they count as different pages.

    The .htaccess belongs in the same folder as your index.html or your root direectory.
    Signature

    My free PSD logs can be downloaded at PSD Bum. Enjoy!

    {{ DiscussionBoard.errors[3224159].message }}
    • Profile picture of the author Terrence Taitt
      If, I am building links to the home page of my website, and I set http://www.mysitename.com to be the URL to which page rank will flow, what will be an instance where duplication can occur (i.e., in the domain name structures)? For example, If I enter www.mysitename.com into the browser or mysitename.com. Please explain when URL duplication could possible occur, and how do I fix this problem.
      {{ DiscussionBoard.errors[3224435].message }}
      • Profile picture of the author fabiobr
        If you have questions you can follow the examples below:
        Sample Rules

        To redirect an old domain to a new domain:
        RewriteCond %{HTTP_HOST} old_domain\.com [NC]
        RewriteRule ^(.*)$ http://www.new_domain.com/$1 [L,R=301]

        To redirect all requests missing "www" (yes www):
        RewriteCond %{HTTP_HOST} ^domain\.com [NC]
        RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

        To redirect all requests with "www" (no www):
        RewriteCond %{HTTP_HOST} ^www\.domain\.com [NC]
        RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]

        link: URL Rewriting for Beginners - Added Bytes

        below is an online editor where you can develop your own template.
        [en] .htaccess Editor

        Tip for redirect all seo index. (php | htm | html | asp ...), so it does not harm other applications and encourage all visitors to index.php, index.html, etc ...

        Sample:

        RewriteRule ^/(index|default).(php|htm|html|shtml|asp|aspx|cfm|p l)$ http://www.domain.com/ [I,R=301]

        with this model it is possible to redirect people who type:

        From:
        www.domain.com / index.html
        www.domain.com / index.htm
        www.domain.com / index.php

        www.domain.com / default.html
        www.domain.com / default.asp
        www.domain.com / default.aspx

        To:

        www.domain.com /

        Remembering that needs to check the conditions of other applications on the same field to not affect the redirection of the same ...

        I have helped!
        {{ DiscussionBoard.errors[3239457].message }}

Trending Topics