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 redirect

    301 redirect

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

      Hi All,

      I have just completed a 301 redirect on my site http://www.klinehimalaya.com and I was just starting a new campaign on SEOmoz and I got this message:

      Roger has detected a problem:
      We have detected that the domain www.klinehimalaya.com and the domain klinehimalaya.com both respond to web requests and do not redirect. Having two "twin" domains that both resolve forces them to battle for SERP positions, making your SEO efforts less effective. We suggest redirecting one, then entering the other here.

      My only other question, is my .htaccess codeing correct and how long will it take to show it is correct in SEOmoz and online?

      All ".htaccess" code:

      AddHandler php-stable .php
      **_Options +FollowSymLinks
      RewriteEngine on
      RewriteCond %{HTTP_HOST} !^www. [NC]
      RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

      RewriteRule (.*).html$ /$1.php [R=301,L]_**

      Lastly, I have recently changed all of my files from .html to .php is this going to hurt my SEO and is the code "RewriteRule (.*).html$ /$1.php [R=301,L]" going to fix the issue by redirecting the .html links to the .php pages?

      Any suggestions or help appreciated.

      Paul.

      1 Reply Last reply Reply Quote 0
      • Mark.RedGiant
        Mark.RedGiant last edited by

        Hi Paul, Assuming you're trying to rewrite to the www. version, cold you try replacing your code with the following RewriteEngine On RewriteCond %{HTTP_HOST} !^www. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] We use that code for all our redirects. 🙂 Obviously an easy check is to try to visit the non-www version and see if it redirects to www. (Your current redirect doesn't.)

        1 Reply Last reply Reply Quote 0
        • Mark.RedGiant
          Mark.RedGiant last edited by

          Sorry, for some reason the formatting on my comment got removed. Hopefully you can still follow.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • 301 Redirects Showing As 307 Redirects
            0
            1
            64

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

          • 301 redirect after penalty to domain which currently 301 to the penalised domain
            evolvingSEO
            evolvingSEO
            0
            4
            305

          • Redirect a 301 Redirect
            RedCaffeine
            RedCaffeine
            0
            5
            98

          • 301 redirects
            vibelingo
            vibelingo
            0
            5
            255

          • Delete 301 redirected pages from server after redirect is in place?
            RuthBurrReedy
            RuthBurrReedy
            0
            5
            4.0k

          • Redirects 301
            PedroM
            PedroM
            0
            5
            639

          • 301 redirect
            AlanMosley
            AlanMosley
            1
            27
            1.9k

          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