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. 301 redirects and seo..

    301 redirects and seo..

    Technical SEO Issues
    3 2 308
    • 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.
    • samerk
      samerk last edited by

      I bought a domain and it has nice traffic. It only has about 5 main pages in php

      When i got the site i switched to html because php was overkill.

      I did the 301 and google deleted the php files and replaced with html version when i check site:domain.com

      It has been about 7 days.

      I DID NOT use 301 for each of the 5 pages to go php to html instead is used this code

      RewriteEngine On
      RewriteCond %{HTTP_HOST} ^mydomain.com
      RewriteRule (.) http://www.mydomain.com/$1 [R=301,L]
      RedirectMatch 301 (.
      ).php$ http://www.mydomain.com$1.html

      So basically if you load php it will load the html version.  dog.php > dog.html

      Is this OKAY? or should it be done differently.... worried!

      Thanks !

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

        Seems fine to me as long as you keep everything in the same case (preferably lower case) and use the exact file structure you had before.

        If you're worried, use the redirect tracker at WhereGoes.com to verify that it is working.

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

          I am still not convinced.

          Their are 2 ways to do the 301 redirect.

          _ All files get redirected to the new extension

          site.com/filexyz.php > filexyz.html

          • The other is the 301 in which you specify each individual page and its new location.

          I did the first method and php pages no longer in google, html are in google but i lost about 50%traffic.  Is this normal or should i have done 301 individual pages?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Redirect a 301 Redirect
            RedCaffeine
            RedCaffeine
            0
            5
            98

          • Ideally should a 301 or 302 redirect be used from https://www.site.com to http://www.site.com? Is there a valid reason to use a 302 in this situation or would using a 301 have any negative impact on seo?
            Unity
            Unity
            0
            2
            317

          • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
            Chris-CA
            Chris-CA
            0
            5
            456

          • 301 redirects
            Devin_Anderson
            Devin_Anderson
            0
            2
            366

          • Is Buying Domains Good For SEO? Can I 301 redirect domains to an Original website?
            livethesource
            livethesource
            0
            4
            1.7k

          • Quick Seo question regarding 301 redirect
            AlanMosley
            AlanMosley
            0
            4
            437

          • Google Webmaster redirect vs 301 redirect
            lavellester
            lavellester
            0
            2
            493

          • 301 Redirects - SEO Benefit?
            Thos003
            Thos003
            0
            3
            1.7k

          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