The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Duplicate content issue. Delete index.html and replace with www.?

    Duplicate content issue. Delete index.html and replace with www.?

    Technical SEO Issues
    13 4 3.0k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bronxpad
      bronxpad @jgower last edited by

      Thank you, I am trying to figure out how to do the 301 redirect but when i asked yahoo they say that the php code is not a real 301 redirect when I asked them. And they only do the 301 redirect on the ecommerce hosting plans which I have no need for. Any insight? Thanks for your answer.

      jgower bronxpad Dr-Pete 7 Replies Last reply Reply Quote 0
      • bronxpad
        bronxpad @mytouchoftech last edited by

        I should put the code in the head right? Thank you.

        1 Reply Last reply Reply Quote 0
        • jgower
          jgower @bronxpad last edited by

          Well, 301 would be best...but I suppose in that situation what I'd do is use the canonical tags...but that's a pain as you'd need to do it for like every page...

          In short, that's just whack...I'd find a new host.

          Edit:  P.S. Why can't yahoo just die already? 🙂

          1 Reply Last reply Reply Quote 1
          • bronxpad
            bronxpad @bronxpad last edited by

            Which hosting company do you prefer? Which one is best for seo purposes? And how do I transfer without impacting my SERPS or does it have no impact?

            1 Reply Last reply Reply Quote 0
            • bronxpad
              bronxpad @bronxpad last edited by

              Also is using a php code a real 301 redirect or no? Do you have a sample php code that I could use? I'm still in learning mode.

              1 Reply Last reply Reply Quote 0
              • jgower
                jgower @bronxpad last edited by

                header ('HTTP/1.1 301 Moved Permanently');
                

                header ('Location: http://www.whatever.com/whatever.php');

                
                --------
                
                As far as I know there's no difference...to Google a 301 is a 301 no matter where you tell it.  Would still be a pain in the butt, though - and I'm not sure 100% efficient....the best thing (i think) would be to have a canonical on every single page, then that will take care of it from the search engine standpoint.
                
                However, I'd still go somewhere that allows rewrites...that's just crazy.  Even my godaddy shared hosting allows htaccess.  Dont go to Godaddy shared hosting - it's awful.  Not sure where to get cheap hosting with htaccess, but I'd venture to say that most hosts support it.  I'd look into a small orange, it's offered as a pro perk through SEOmoz for 3 months at half price and it looks like they offer $20/mo plans for business - or if you wanna try it $35/yr plan as well.
                
                From my experience, as long as you do it correctly, changing hosts will not affect your SERPs.  We actually moved in January and saw nothing change.
                1 Reply Last reply Reply Quote 0
                • bronxpad
                  bronxpad @bronxpad last edited by

                  I use dream weaver as my HTML editor, I templated out my site so I wonder if I can just put the code at the top of the template and have it update every page on my site. Now where in the head do I put the code? At the very beginning? Also I know yahoo, godaddy and others promote unlimited bandwidth and storage while others have a tiered plan. Isn't it better to have unlimited? I'm just asking since there is an up charge if you go over the bandwidth or storage on the other hosting plans. Thank you for your help.

                  1 Reply Last reply Reply Quote 0
                  • jgower
                    jgower @bronxpad last edited by

                    Well the canonical will be different for every page...so if your page is:

                    www.jeremygower.com/contact/index.php

                    your canonical would be:

                    Basically, what that says is..."hey google, it doesn't matter what URL you think you're at, make sure that the only one in your search engine is the one in the canonical tag"...therefore, be very careful with it as well.  If you simply put www.jeremygower.com as the canonical for every page, google would de-index every other page of your site.

                    Anywhere in the head is good.


                    IMO, unlimited ends up being a bad thing...the way those things work is that godaddy (or whoever) puts a ton of websites on the same server, so think about the 500 or so other sites with 'unlimited' bandwidth using your server.  It makes it slow...for instance there's about 400 domains on the same server as my domain, and yes, it's slow a lot of the time...the cheap plan on a small orange I'm sure is similar but I'd expect better quality than godaddy.  (they dont have unlimited)

                    1 Reply Last reply Reply Quote 2
                    • Dr-Pete
                      Dr-Pete @bronxpad last edited by

                      Remember, if you put this in the PHP code, it has to be conditional - you don't want to redirect your canonical version unnecessarily. Since your home-page is just one template, you'd be firing a 301 for every situation.

                      1 Reply Last reply Reply Quote 0
                      • Dr-Pete
                        Dr-Pete last edited by

                        When you say "delete", do you mean delete it from the home button (and just use the root version), or delete the page? Keep in mind that the "index.html" page also drives the root version of the site ("www.example.com/"), so you definitely don't want to delete that file.

                        Whether you use 301-redirects or canonical tags (either should be ok, but it sounds like the canonical tag would be easier for you to implement), it is important to use a consistent path. So, you do need to change the button link to match the canonical version of the URL. Don't do this until after you've got either the 301 or canonical tag in place.

                        1 Reply Last reply Reply Quote 2
                        • 1 / 1
                        • First post
                          Last post
                        • Duplicate Content Showing up on Moz Crawl | www. vs. no-www.
                          MarketingChimp10
                          MarketingChimp10
                          0
                          5
                          299

                        • When is Duplicate Content Duplicate Content
                          AMHC
                          AMHC
                          0
                          6
                          169

                        • Duplicate content or Duplicate page issue?
                          Kurt_Steinbrueck
                          Kurt_Steinbrueck
                          0
                          2
                          106

                        • Duplicate Content Issues
                          dimanyc
                          dimanyc
                          0
                          3
                          96

                        • Duplicate Content based on www.www
                          CredA
                          CredA
                          0
                          9
                          427

                        • Duplicate Content Issue with
                          josh-riley
                          josh-riley
                          0
                          5
                          353

                        • Duplicate content issue index.html vs non index.html
                          KaneJamison
                          KaneJamison
                          0
                          10
                          1.7k

                        • Duplicate Content Issue
                          gfiorelli1
                          gfiorelli1
                          0
                          2
                          491

                        Get started with Moz Pro!

                        Unlock the power of advanced SEO tools and data-driven insights.

                        Start my free trial
                        Products
                        • Moz Pro
                        • Moz Local
                        • Moz API
                        • Moz Data
                        • STAT
                        • Product Updates
                        Moz Solutions
                        • SMB Solutions
                        • Agency Solutions
                        • Enterprise Solutions
                        • Digital Marketers
                        Free SEO Tools
                        • Domain Authority Checker
                        • Link Explorer
                        • Keyword Explorer
                        • Competitive Research
                        • Brand Authority Checker
                        • Local Citation Checker
                        • MozBar Extension
                        • MozCast
                        Resources
                        • Blog
                        • SEO Learning Center
                        • Help Hub
                        • Beginner's Guide to SEO
                        • How-to Guides
                        • Moz Academy
                        • API Docs
                        About Moz
                        • About
                        • Team
                        • Careers
                        • Contact
                        Why Moz
                        • Case Studies
                        • Testimonials
                        Get Involved
                        • Become an Affiliate
                        • MozCon
                        • Webinars
                        • Practical Marketer Series
                        • MozPod
                        Connect with us

                        Contact the Help team

                        Join our newsletter
                        Moz logo
                        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                        • Accessibility
                        • Terms of Use
                        • Privacy