• seohunters9

        See all notifications

        Skip to content
        Moz logo Menu open Menu close
        • Products
          • Moz Pro
          • Moz Pro Home
          • Moz Local
          • Moz Local Home
          • STAT
          • Moz API
          • Moz API Home
          • Compare SEO Products
          • Moz Data
        • Free SEO Tools
          • Domain Analysis
          • Keyword Explorer
          • Link Explorer
          • Competitive Research
          • MozBar
          • More Free SEO Tools
        • Learn SEO
          • Beginner's Guide to SEO
          • SEO Learning Center
          • Moz Academy
          • MozCon
          • Webinars, Whitepapers, & Guides
        • Blog
        • Why Moz
          • Digital Marketers
          • Agency Solutions
          • Enterprise Solutions
          • Small Business Solutions
          • The Moz Story
          • New Releases
        • Log in
        • Log out
        • Products
          • Moz Pro

            Your all-in-one suite of SEO essentials.

          • Moz Local

            Raise your local SEO visibility with complete local SEO management.

          • STAT

            SERP tracking and analytics for enterprise SEO experts.

          • Moz API

            Power your SEO with our index of over 44 trillion links.

          • Compare SEO Products

            See which Moz SEO solution best meets your business needs.

          • Moz Data

            Power your SEO strategy & AI models with custom data solutions.

          Let your business shine with Listings AI
          Moz Local

          Let your business shine with Listings AI

          Learn more
        • Free SEO Tools
          • Domain Analysis

            Get top competitive SEO metrics like DA, top pages and more.

          • Keyword Explorer

            Find traffic-driving keywords with our 1.25 billion+ keyword index.

          • Link Explorer

            Explore over 40 trillion links for powerful backlink data.

          • Competitive Research

            Uncover valuable insights on your organic search competitors.

          • MozBar

            See top SEO metrics for free as you browse the web.

          • More Free SEO Tools

            Explore all the free SEO tools Moz has to offer.

          NEW Keyword Suggestions by Topic
          Moz Pro

          NEW Keyword Suggestions by Topic

          Learn more
        • Learn SEO
          • Beginner's Guide to SEO

            The #1 most popular introduction to SEO, trusted by millions.

          • SEO Learning Center

            Broaden your knowledge with SEO resources for all skill levels.

          • On-Demand Webinars

            Learn modern SEO best practices from industry experts.

          • How-To Guides

            Step-by-step guides to search success from the authority on SEO.

          • Moz Academy

            Upskill and get certified with on-demand courses & certifications.

          • MozCon

            Save on Early Bird tickets and join us in London or New York City

          Unlock flexible pricing & new endpoints
          Moz API

          Unlock flexible pricing & new endpoints

          Find your plan
        • Blog
        • Why Moz
          • Digital Marketers

            Simplify SEO tasks to save time and grow your traffic.

          • Small Business Solutions

            Uncover insights to make smarter marketing decisions in less time.

          • Agency Solutions

            Earn & keep valuable clients with unparalleled data & insights.

          • Enterprise Solutions

            Gain a competitive edge in the ever-changing world of search.

          • The Moz Story

            Moz was the first & remains the most trusted SEO company.

          • New Releases

            Get the scoop on the latest and greatest from Moz.

          Surface actionable competitive intel
          New Feature

          Surface actionable competitive intel

          Learn More
        • Log in
          • Moz Pro
          • Moz Local
          • Moz Local Dashboard
          • Moz API
          • Moz API Dashboard
          • Moz Academy
        • Avatar
          • Moz Home
          • Notifications
          • Account & Billing
          • Manage Users
          • Community Profile
          • My Q&A
          • My Videos
          • Log Out

        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. Home
        2. SEO Tactics
        3. Technical SEO
        4. 301 redirect not working

        Moz Q&A is closed.

        After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

        301 redirect not working

        Technical SEO
        3
        12
        5939
        Loading More Posts
        • Watching

          Notify me of new replies.
          Show question in unread.

        • Not Watching

          Do not notify me of new replies.
          Show question in unread if category is not ignored.

        • Ignoring

          Do not notify me of new replies.
          Do not show question in unread.

        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as question
        Locked
        This topic has been deleted. Only users with question management privileges can see it.
        • twotd
          twotd last edited by

          Hi there! I have recently moved a domain that has been indexed by google and setup redirects so that it forwards to the new domain. It seems like the only redirect that actually is working is the canonical and main domain but every other page and or page nested within a folder are not working. Here is an example of some of the redirects. Am I doing this wrong? It seems to be going to the new domain but can't find the actual pages....

          RewriteEngine On
          RewriteBase /
          RewriteCond %{HTTP_HOST} !agoodsweep.com$ [NC]
          RewriteRule ^(.*)$ http://agoodsweep.com/$1 [L,R=301]
          redirect 301 woodstoveservicerepair.html http://agoodsweep.com/woodstoveservicerepair/
          redirect 301 /westchesterchimney.html http://agoodsweep.com/west-chester-chimney/

          Thanks in advance for any help!!

          1 Reply Last reply Reply Quote 0
          • BlueprintMarketing
            BlueprintMarketing @twotd last edited by

            Great news there is a plugin you might like http://wordpress.org/extend/plugins/redirection/

            ps I would still use a maged Wordpress host they will speed up your site and keep it safe.

            Happy it is fixed

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

              PS all your links point to www.antrimscomplete.com

              not antrimscomplete.com

              1 Reply Last reply Reply Quote 0
              • BlueprintMarketing
                BlueprintMarketing @twotd last edited by

                Sorry I just spent 45 min and went to post the site made me login it did not post

                i will have more time later but do NOT tell google to devalue  HTML links

                Make a redirect with links shown

                http://www.htaccessredirect.co.uk/

                http://yoast.com/change-wordpress-permalink-structure/

                http://www.webconfs.com/htaccess-redirect-generator.php

                http://www.internetofficer.com/seo-tool/redirect-check/

                http://www.webconfs.com/how-to-redirect-a-webpage.php

                If moving your domain this is a good time to use a Wordpress only host use Zippykid , WPengine, Pagely, Web Synthesis or PressLabs Zippykid gives you the most for the moneyhttps://www.zippykid.com/pricing/they are great and will move you and fix this for you. https://www.zippykid.com/resources/kb/pre-sales-faq/can-you-migrate-my-website-for-me/This is how to move to there hosting your selfhttps://www.zippykid.com/resources/kb/getting-started/migrate-your-wordpress-website-to-zippykid/if not use this infohttp://robcubbon.com/moving-wordpress-site-to-new-domain/

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

                  read a bunch of those articles and saw the video w/matt cutts...

                  i have gone into google webmaster tools and have both sites. I told google to redirect antrimscomplete.com to a goodsweep.com. I also simplified the htaccess :

                  Redirect 301 /http://agoodsweep.com/
                  redirect 301 /index.html http://agoodsweep.com/
                  redirect 301 /woodstoveservicerepair.html http://agoodsweep.com/woodstoveservicerepair/
                  and on and on...still the sitelinks in google get 404's. Looked in the host ftp panel to make sure it was reading it - it was. So then I just figured that if i redirect those links in agoodsweep (the new url) to the correct page, it might work.

                  It worked! Thanks for all the help - much appreciated!! Now i have to do a bunch of redirects in the wordpress simple redirects plugin.

                  BlueprintMarketing 1 Reply Last reply Reply Quote 0
                  • twotd
                    twotd @BlueprintMarketing last edited by

                    hi Thomas - I did clear my cache and history and used separate browsers but do not see that it is working. I will check out the screaming frog!the old site at antrimscomplete.com has been a wordpress site for years now. I guess that the developer of that site left all the html pages up and then realized the problem and put in redirects. So this site has been sitting for a few years  as-is. The owner wants to use a different domain name and wants a different look. I am trying to clean up the mess! I want it to be in wordpress because he uses it as a cms. I guess google indexed a hodge-podge of links, some of which are some of those html pages. Do you suggest going into google webmaster tools and demote the sitelink url's that are the old pages? Does google then use other pages to fill the slots?

                    BlueprintMarketing 1 Reply Last reply Reply Quote 0
                    • BlueprintMarketing
                      BlueprintMarketing @twotd last edited by

                      you have some serious problems that site just so you know. I will look at your inbound links a lot of them are very  spamy.

                      Why would you take an existing HTML website and convert it into WordPress out of curiosity?

                      I'm not saying there aren't advantages toward press I love WordPress for it much to HTML however if you're going to do a web project like that you and want to start with a clean slate yours has anchor text stating that the website is going to be turned from HTML to WordPress that's not good.

                      I would strongly consider having somebody like Joost audit the site and then fix it. Or simply have a developer pull the good code. The stylesheet will tell the website will look along with CSS with that start you can• with a fresh and get it right

                      twotd 1 Reply Last reply Reply Quote 0
                      • BlueprintMarketing
                        BlueprintMarketing @twotd last edited by

                        I am so sorry this is taking so long. Let me somebody that is sure to know

                        It IS fine it  redirects to http://agoodsweep.com/ no www

                        if you want to use the www. you must swap what you have up there.

                        use this to find the problem Use the link below to find any big problems in most websites. Change your browser or clean out your cash or reset your browser entirely because it is functioning correctly now

                        http://www.screamingfrog.co.uk/seo-spider/

                        http://www.searchenginejournal.com/how-to-avoid-seo-disaster-during-a-website-redesign/42824/

                        http://www.searchenginejournal.com/why-and-an-easy-way-to-set-up-a-301-redirect-on-your-blog/36752/

                        http://www.searchenginejournal.com/seo-friendly-url-structure/4556/

                        http://www.searchenginejournal.com/10-ways-coding-can-help-your-seo/45402/

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

                          thanks for all the input! I did adjust the htaccess to Method 1, but still it is not working correctly. Here is what i did:

                          Options +FollowSymlinks
                          RewriteEngine On
                          RewriteCond %{HTTP_HOST} ^antrimscomplete.com [NC]
                          RewriteRule ^(.)$ http://agoodsweep.com/$1 [L,R=301]
                          RewriteCond %{HTTP_HOST} ^www.antrimscomplete.com [NC]
                          RewriteRule ^(.
                          )$ http://agoodsweep.com/$1 [L,R=301]

                          The old site was originally html and then they made it into a wordpress but kept all the html pages up and active with a few redirects here and there. My client wants a new domain name and eventually a different design, so i have started the process by moving the old domain and all of it's content to the new domain.

                          When you google antrims complete, google has added some site links and here is where things go south - it seems that the pages follow to the new domain but fall short of going to the new page. For example:

                          google points to "our services" page and it redirects to: http://agoodsweep.com/ourservices.html

                          in the htaccess i have: redirect 301 /ourservices.html http://agoodsweep.com/our-services/

                          it's weird because google any thoughts??

                          BlueprintMarketing 2 Replies Last reply Reply Quote 0
                          • BlueprintMarketing
                            BlueprintMarketing last edited by

                            http://www.seomoz.org/learn-seo/redirection

                            http://301redirects.net/redirect-old-domain-to-new-website.php

                            http://website-tools.net/google-keyword/word/apache+redirect+domain

                            http://support.google.com/webmasters/bin/answer.py?hl=en&answer=93633

                            Redirect an Old Domain to your New Website

                            How to instructions using a 301 redirect and mod_rewrite

                            Simply enter the following code into your .htaccess file (changing the addresses in the examples below as needed) and save the changes. If there are several individual pages which have moved, just repeat as neccesary. Not sure how to access or change or .htaccess file. Read our .htaccess guide here.

                            Method 1:

                            Options +FollowSymlinks 
                            RewriteEngine On
                            RewriteCond %{HTTP_HOST} ^olddomain.com [NC]
                            RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]

                            RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC]
                            RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]

                            Method 2:

                            Options +FollowSymlinks 
                            RewriteEngine On
                            RewriteCond %{HTTP_HOST} \olddomain.com$
                            RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]

                            Method 3:

                            Options +FollowSymLinks
                            RewriteEngine on
                            RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

                            Method 4:

                            Redirect 301 / http://www.newdomain.com/

                            Benefits of redirecting traffic from your old domain

                            • Don't lose website traffic! Ensure all visitors coming through to your old domain are instantly redirected through to your new address, rather than being presented with a an ugly error 404 which destroys trust in your website and perceived credibility. This means that customers who have already bookmarked your site, or memorised your web address can continue to have access seamlessly. Still have business cards or publications advertising your old website address or domain? This is not an issue with a properly setup 301 redirect.
                            • Keep the Google bot happy! When a website or domain returns an error 404 (page not found) this tells Google that your website no longer resides at this address, and Google therefore promptly removes all of your web listings from it's search engine index, meaning all your SEO efforts to raise search engine ranks will have been wasted. Instead, by properly setting up a 301 redirect for your domain name, this tells Google (and other search engines) that your website has changed address, and Google then therefore updates it's index to reflect this change of address (while preserving your rankings). Also very important to note, is that Google then recognises all inbound links pointing through to your old website and attributes these 'votes' towards your new website, transferring almost all of your Google Pagerank and other signals accross to your new site, and assisting in preserving your sites reputation.
                            1 Reply Last reply Reply Quote 0
                            • BlueprintMarketing
                              BlueprintMarketing last edited by

                              Would you do me a favor and explained exactly what you are using WordPress?

                              Can you give me both domains without folders?

                              I will get you the right info. I also need to know are you using lightspeed, Apache what you using?

                              sincerely,

                              Tom

                              1 Reply Last reply Reply Quote 0
                              • Mike.Goracke
                                Mike.Goracke last edited by

                                I am confused. I am no .htaccess expert; however, I think you should have your old domain in the condition and the rule should have your new domain... like this maybe?

                                RewriteEngine On
                                RewriteBase /
                                RewriteCond %{HTTP_HOST} !antrimscomplete.com$ [NC]
                                RewriteRule ^(.*)$ http://agoodsweep.com/$1 [L,R=301]

                                Mike

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post

                                Browse Questions

                                Explore more categories

                                • Moz Tools

                                  Chat with the community about the Moz tools.

                                • SEO Tactics

                                  Discuss the SEO process with fellow marketers

                                • Community

                                  Discuss industry events, jobs, and news!

                                • Digital Marketing

                                  Chat about tactics outside of SEO

                                • Research & Trends

                                  Dive into research and trends in the search industry.

                                • Support

                                  Connect on product support and feature requests.

                                • See all categories

                                Related Questions

                                • tejasbansode

                                  Is 301 redirect the only way when using Vanity URLs?

                                  We have been using vanity urls for some of our pages. Mostly the pages that have a vanity URL have a long URL length. But now the problem is, the vanity URL is getting displayed on the search engine when the particular keyword related to the page is entered. I checked the google search console, the vanity URL is indexed and the original URL remains unindexed. What should I do? Is adding 301 redirect to the vanity URLs are solution? Since some of vanity URLs are not redirecting to the original. Some of the original pages are not getting traffic. Also, can using canonical tag help?

                                  Technical SEO | | tejasbansode
                                  0
                                • DGAU

                                  Can I use a 301 redirect to pass 'back link' juice to a different domain?

                                  Hi, I have a backlink from a high DA/PA Government Website pointing to www.domainA.com which I own and can setup 301 redirects on if necessary. However my www.domainA.com is not used and has no active website (but has hosting available which can 301 redirect). www.domainA.com is also contextually irrelevant to the backlink. I want the Government Website link to go to www.domainB.com - which is both the relevant site and which also should be benefiting from from the seo juice from the backlink. So far I have had no luck to get the Government Website's administrators to change the URL on the link to point to www.domainB.com. Q1: If i use a 301 redirect on www.domainA.com to redirect to www.domainB.com will most of the backlink's SEO juice still be passed on to www.domainB.com? Q2: If the answer to the above is yes -  would there be benefit to taking this a step further and redirect www.domainA.com to a deeper directory on www.domianB.com which is even more relevant?
                                  ie. redirect www.domainA.com to www.domainB.com/categoryB - passing the link juice deeper.

                                  Technical SEO | | DGAU
                                  0
                                • musthavemarketing

                                  301 redirects delay in picking up

                                  Hi I have been involved in the redesign/development of a website which has up until now had a lot of international traffic.  On day of migration I uploaded all the 301 redirects to the website (wordpress) using Simple 301 redirect plugin.  I tested a number of them and they appeared to be working. I also submitted the new sitemaps to Search Console. Since migration international traffic - particularly from countries such as india, Phillipines, Sri Lanka etc have significantly dropped off whereas the local traffic and some of the international traffic such as USA has remained fairly consistent.  Looking at Analytics and entrances recently it appears as though search results are/were showing a number of pages with 404's (one in particular which received significant traffic and for which I had created a 301 redirection) - I have checked this page using the old url and it re-directs correctly for me and today asked a colleague in India to also check - he is getting the redirection fine.  Does Google.in take a significantly longer time to pick these up in search results? Or am I missing something?

                                  Technical SEO | | musthavemarketing
                                  0
                                • 2MSens

                                  Best & easiest way to 301 redirect on IIS

                                  Hi all, What is the best and easiest way to 301 redirect URLs on IIS server? I got access to the FTP and WordPress back office, but no access to the server admin. Is there an easy way to create 301 redirect without having to always annoy the tech in charge of the server? Thanks!

                                  Technical SEO | | 2MSens
                                  0
                                • Oxfordcomma

                                  Increase 404 errors or 301 redirects?

                                  Hi all, I'm working on an e-commerce site that sells products that may only be available for a certain period of time. Eg. A product may only be selling for 1 year and then be permanently out of stock. When a product goes out of stock, the page is removed from the site regardless of any links it may have gotten over time. I am trying to figure out the best way to handle these permanently out of stock pages. At the moment, the site is set up to return a 404 page for each of these products. There are currently 600 (and increasing) instances of this appearing on Google Webmasters. I have read that too many 404 errors may have a negative impact on your site, and so thought I might 301 redirect these URLs to a more appropriate page. However I've also read that too many 301 redirects may have a negative impact on your site. I foresee this to be an issue several years down the road when the site has thousands of expired products which will result in thousands of 404 errors or 301 redirects depending on which route I take. Which would be the better route? Is there a better solution?

                                  Technical SEO | | Oxfordcomma
                                  0
                                • Dan-Lawrence

                                  Creating a CSV file for uploading 301 redirect URL map

                                  Hi if i'm bulk uploading 301 redirects whats needed to create a csv file? is it just a case of creating an excel spreadsheet & have the old urls in column A and new urls in column B and then just convert to csv and upload ? or do i need to put in other details or paremeters etc etc ? Cheers Dan

                                  Technical SEO | | Dan-Lawrence
                                  0
                                • BaseKit

                                  How to safely reduce the number of 301 redirects / should we be adding so many?

                                  Hi All, We lost a lot of good rankings over the weekend with no obvious cause. Our top keyword went from p3 to p12, for example. Site speed is pretty bad (slower than 92% of sites!) but it has always been pretty bad. I'm on to the dev team to try and crunch this (beyond image optimisation) but I know that something I can effect is the number of 301 redirects we have in place. We have hundreds of 301s because we've been, perhaps incorrectly, adding one every time we find a new crawl error in GWT and it isn't because of a broken link on our site or on an external site where we can't track down the webmaster to fix the link. Is this bad practice, and should we just ignore 404s caused by external broken URLs? If we wanted to reduce these numbers, should we think about removing ones that are only in place due to external broken URLs? Any other tips for safely reducing the number of 301s? Thanks, all! Chris

                                  Technical SEO | | BaseKit
                                  0
                                • EvergladesDirect

                                  200 Redirects for SEO instead of 301

                                  We are working with a company on re-platforming our website.  On a call yesterday they outlined a strategy to use 200 redirects for our top keywords instead of 301s.  I am not familiar with this type of redirect and was wondering if anyone could provide some more insight.

                                  Technical SEO | | EvergladesDirect
                                  0

                                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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                                • Accessibility
                                • Terms of Use
                                • Privacy

                                Looks like your connection to Moz was lost, please wait while we try to reconnect.