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. Canonical vs 301 for index.php

    Canonical vs 301 for index.php

    Technical SEO Issues
    4 2 205
    • 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.
    • advertisingcloud
      advertisingcloud last edited by

      Hello, we found recently quite a big error  our index.php file had no canonical tag nor was a 301 redirect. So we put a canonical tag to it that it's the main www.examle.com duplicate . Now is there any difference in regards to link juice or Google 301 vs canonical tag ? I read that moz did a 301 from their index php.  I understand one difference is that user then can Type in the URL if no 301, but I'm interested about ranking effect of it.

      1 Reply Last reply Reply Quote 0
      • GastonRiera
        GastonRiera last edited by

        Hello,

        As Google perspective, there is no difference.
        As linkjuice, it's better to redirect with a 301.

        My experience? (and my opinion) it's more secure and the change is done faster in google's index: 301 redirect.

        Best luck.
        GR.

        1 Reply Last reply Reply Quote 1
        • advertisingcloud
          advertisingcloud last edited by

          Hello,

          thanks for the answer. So for raking it would be better to redirect the index.php as i understand?  The issue we have is that we use Os-class as our platform, and even if i set a new directory index sitehome.php and make a 301 redirect, our site breaks down and some functionality does not work..

          GastonRiera 1 Reply Last reply Reply Quote 0
          • GastonRiera
            GastonRiera @advertisingcloud last edited by

            The safest and quickest option would be the 301 redirect.

            For the cases when that can't be done, there is the canonical option. And of course,  make sure that index.php is out of the sitemap.

            Hope it helps.
            GR.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • To 301 or not to 301?
              iHasco
              iHasco
              1
              4
              70

            • 404 vs 410 vs 301
              LoonyToons
              LoonyToons
              0
              4
              1.8k

            • To 301 or not to 301?
              seorocket
              seorocket
              0
              3
              91

            • How to redirect index.htm (IIS server, windows hosting) to index.php (Apache server, Linux Hosting) ?
              Cyrus-Shepard
              Cyrus-Shepard
              0
              8
              4.1k

            • Modx revolution- getting around index.php vs. root duplicate content issue?
              G2W
              G2W
              0
              5
              517

            • Canonical and 301
              TommyTan
              TommyTan
              0
              4
              189

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

            • Rel canonical or 301 the Index Page?
              KeriMorgret
              KeriMorgret
              0
              8
              1.4k

            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