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. API
    4. /index.php causing a few issues

    /index.php causing a few issues

    API
    8 4 180
    • 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.
    • ATP
      ATP last edited by

      Hey Mozzers,

      Our site uses magento. Pages within the site (not categories or products) are set to display as www.domain.co.uk/page-url/

      The hta access is set to redirect all version such as www.domain.co.uk/page-url  to a url ending in a /

      However in google analytics and in moz landing page tracker these urls are being represented by www.domain.co.uk/page-url/index.php

      When visiting www.domain.co.uk/page-url/index.php a 404 is displayed.

      I know that by default when directed to a directory it automatically finds and displays the index file. So i understand why this is happening to some degree. However, when manually visiting this link does not exist.

      This poses a problem when trying to view the landing pages information in moz pro. I have 20 keywords being tracked in relation to www.domain.co.uk/page-url/ but because moz is recording it as www.domain.co.uk/page-url/index.php the keywords are unrelated so not showing information in relation to the page.

      Any ideas?

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

        Not sure if I understand it completely, but you can't rewrite (something different than redirect) the URLs server side?

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

          No idea thats kinda why im asking,

          www.domain.co.uk/page-url/index.php   returns a 404 page
          www.domain.co.uk/page-url/   is the actual page that displays content

          on the moz campaign keyword ranking tracker
          20 of my no1 ranked keywords return www.domain.co.uk/page-url/ as the ranking url this is what i expect and is perfect

          but on the moz landing pages tab (the one that shows percentage of traffic from keywords etc)
          www.domain.co.uk/page-url/  is nowhere to be seen and is instead replaced by www.domain.co.uk/page-url/index.php

          The is an issue because the other part of moz thinks that www.domain.co.uk/page-url/ is ranking for the keywords and as such shows that im tracking no keywords for this page

          I don't know if this is a wrong setting in magento, or just requires a redirect of /index.php to /  or if redirecting like this would cause hundreds of infinite redirect loops as technically the version without index.php is still displaying index.php. Basically all im asking is, why does the different parts of moz display lthe 2 different urls and how do i fix it?

          Thanks

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

            Just had a brain wave that I will see if fixes the issue.

            Im guessing the landing pages tab pulls the information over from the linked analytics account. Whoever set up the account there has index.php set as the default url. I have removed this from analytics and will see in a few days if this changes the outcome of landing pages in moz.

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

              Hi there - Kristina from Moz's Help Team here.

              Sounds like you're on the right track with this one, but I did just want to interject that the Landing Pages section within your campaign updates on a weekly-basis when your campaign refresh happens. It looks like your next update is scheduled to occur on May 20th so if your fix resolves it most likely you won't see those changes take effect until then.

              If you're still seeing issues after that update happens, please don't hesitate to reach out to our team by emailing help@moz.com so we can investigate the issue further for you!

              Have a great day!
              -Kristina

              ATP 1 Reply Last reply Reply Quote 1
              • ATP
                ATP @KristinaKeyser last edited by

                thanks kristina ill check after the 20th

                hfcmarketing 1 Reply Last reply Reply Quote 0
                • hfcmarketing
                  hfcmarketing @ATP last edited by

                  Hello!

                  I think i'm having a similar issue. Did fixing the analytics account work for you? We recently removed the index.php from our Analytics account but are seeing them in Moz still.

                  Thanks!

                  ATP 1 Reply Last reply Reply Quote 0
                  • ATP
                    ATP @hfcmarketing last edited by

                    Yes this fixed ours fully, we had to wait a couple of week for things to update and get pulled back through but it did the trick

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post
                    • Sitemaps and Indexed Pages
                      ThompsonPaul
                      ThompsonPaul
                      0
                      4
                      100

                    • Spring is here and so is our May Index Update!
                      julie-getonthemap
                      julie-getonthemap
                      5
                      3
                      855

                    • The April Index Update is Here!
                      jennita
                      jennita
                      9
                      5
                      707

                    • Still not got any index update data.
                      AndreaBiffle
                      AndreaBiffle
                      0
                      3
                      325

                    • 10/14 Mozscape Index Update Details
                      JosephGourvenec
                      JosephGourvenec
                      4
                      19
                      995

                    • Mozscape Index
                      rjonesx. 0
                      rjonesx. 0
                      1
                      6
                      349

                    • August 3rd Mozscape Index Update (our largest index, but nearly a monthly late)
                      Sticky
                      Sticky
                      8
                      13
                      1.6k

                    • Have Questions about the Jan. 27th Mozscape Index Update? Get Answers Here!
                      randfish
                      randfish
                      8
                      4
                      1.0k

                    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