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. On-Page / Site Optimization
    4. I changed my site from HTML to PHP and I need to get some help.

    I changed my site from HTML to PHP and I need to get some help.

    On-Page / Site Optimization
    4 2 555
    • 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.
    • TrendyHost
      TrendyHost last edited by

      Ok...so the other day I went from HTML to PHP in every part of my website. I want to know the best option for me for redirecting my pages from HTML to php. I had my site scanned with SEOMoz and I was given many 404 errors which is not at all good.

      I do not have any pages of my site linking to any of these html pages. All of the site links have been updated. I have checked 3 times.

      I have never created a robots.txt file so I would love to get a little help with this part.

      I was thinking it would be best to tell Google not to worry about these pages in the file.

      I kept the pages up and I plan to remove all code with them so that no content shows up if someone visits but the issue with that is my site is already indexed as HTML.

      I want to have the HTML pages redirect to the PHP without worrying that my visitors will land on my site via Google onto an HTML page.

      I hope I am making sense.

      What is the best advice you can give me. I need all pages to redirect to PHP.

      I used an htaccess redirect from all HTML to PHP but when I get so many of them added I get an error on my site saying too many redirects.

      Seriously need help.

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

        Will the SEOMoz.com team please answer this question. It is sort of important.

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

          Why are you redirecting .html to .php why dont you just permanently change the endings of the pages to .php?

          TrendyHost 1 Reply Last reply Reply Quote 0
          • TrendyHost
            TrendyHost @CompleteOffice last edited by

            I did that. I changed all my pages to php but my site is indexed in Google for HTML which when they land is not showing anymore because I deleted the .html files.

            I need to know the right way to make google index my php pages in replace of the html.

            I do not want to get penalized for dup content being that there is a about.php and about.html.

            They both have the same content. I also do not want google to think the pages are gone and penalize me for missing or uncrawlable pages.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Two Day After Starting Moz Pro campaign i experienced Sudden Huge Traffic Drop and My site ranki Drops in my site..Please I need your help
              0
              1
              35

            • Need Professional Help with Site Structure, Page Authority, and Internal Linking
              SurgeStream
              SurgeStream
              0
              2
              74

            • Will German meta data help an English USA-based site get found in Germany?
              Caro-O
              Caro-O
              0
              6
              137

            • Need help in understanding why my site does not rank well for our best content?
              AlexMcKee
              AlexMcKee
              0
              2
              63

            • The correct way to go from PHP site to HTML site?
              MikeTek
              MikeTek
              0
              4
              108

            • Need help regarding On page issue for dating site?
              varun1800
              varun1800
              0
              3
              190

            • Need help ranking my site
              Carla_Dawson
              Carla_Dawson
              0
              6
              282

            • Website redesign: site going from .php to .html
              anthonytjm
              anthonytjm
              0
              2
              361

            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