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. Link Building
    4. Changing permalinks, 301 nightmare

    Changing permalinks, 301 nightmare

    Link Building
    16 4 273
    • 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.
    • VillasDiani
      VillasDiani @Tunji last edited by

      Thank you very much Jeff, I thought that the only option will be to do it in .htaccess file, any idea how to do it?

      Tunji 1 Reply Last reply Reply Quote 0
      • Tunji
        Tunji @VillasDiani last edited by

        The basic idea for 301 redirects in htacess is:

        `Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html` 
        
        But if you aren't comfortable writing out a line for each page you've deleted and need redirecting, I would suggest the "Redirection" plugin. It's pretty easy to set up.
        
        VillasDiani 2 Replies Last reply Reply Quote 1
        • VillasDiani
          VillasDiani @Tunji last edited by

          Thank you Jeff very much,

          But we are not using www, do you thing that I have to include it anyway or is this redirect without www correct? Redirect 301 /geography-kenya-map-kenya/ http://villasdiani.com/where-is-kenya/

          1 Reply Last reply Reply Quote 0
          • VillasDiani
            VillasDiani @Tunji last edited by

            So and now i have pasted redirects of some posts and I am going to check and I can't axes the site! It says Internal server error. And now I am dead:-(

            Tunji 1 Reply Last reply Reply Quote 0
            • Tunji
              Tunji @VillasDiani last edited by

              Hmmm.Yes, I would try the www in case your server doesn't handle that redirect automatically.

              If you can't get it to work, I would remove the 301 redirects you added to the .htaccess file. Again, I would suggest you use the Redirection Plugin:

              http://wordpress.org/extend/plugins/redirection/

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

                Hi July

                This is really three separate things here, so I see why it's giving you trouble.

                1. Changing permalinks
                2. Changing what category a post belongs to
                3. Redirects

                When you do one of the above, it does not do the others automatically - for example, changing a permalink will not change the category or add a 301 redirect (by default - although some systems might add the 301 automatically).

                So let me explain each one step by step. Realize they are three separate things normally.

                1. Changing The Permalink

                This is changing the URL. If you wanted to change for example

                • domain.com/first-url-dont-like-it ... to
                • domain.com/love-this-url

                That's one step. Now. Some plugins may add a redirect for you. So. When you change your permalink

                • try visiting the old permalink
                • if it redirects - you're all set - you don't need to do a redirect yourself.
                • if it does not redirect, you either need to use the redirection plugin or write the redirect in the .htaccess file.

                2. Changing What Category The Post Belong To

                Note, this is entirely different from just changing a permalink. You need to go to edit that post itself and select your preferred category for that post. This is assuming your not creating any new categories or deleting old categories. You're just moving posts around to different categories.

                Then, when you move a post into a different category and remove it from the old one, it will show up under the new category archive.

                3. Redirects

                As mentioned - these may or may not happen automatically when you change a permalink. I usually prefer them to NOT happen automatically.

                This is why it's best of course to decide the final permalink for a post before you hit publish as it's much easier to not have to go back and edit it.

                Please let us know if you're still having trouble - thanks!

                -Dan

                VillasDiani 1 Reply Last reply Reply Quote 3
                • VillasDiani
                  VillasDiani @evolvingSEO last edited by

                  Thank you so much Dan for all the explanation! All clear now! I have now manged to do redirect in .htaccesses file. All links are running well now. Thank you so much!

                  Iam trying to give you the good answer and it is bringing me to Not Found page:-(

                  I believe I might be cursed by computers and our site will never rank:-(

                  VillasDiani 1 Reply Last reply Reply Quote 1
                  • VillasDiani
                    VillasDiani @VillasDiani last edited by

                    😉 now it just worked...I am cursed:-(

                    evolvingSEO 1 Reply Last reply Reply Quote 0
                    • evolvingSEO
                      evolvingSEO @VillasDiani last edited by

                      Awesome! Thanks for letting me know it worked and thanks for trying that 'good answer' button a few times 😉

                      If you ever have any more trouble with anything on Moz - email help@seomoz.org

                      VillasDiani 1 Reply Last reply Reply Quote 1
                      • VillasDiani
                        VillasDiani @evolvingSEO last edited by

                        Sunny greetings from Diani beach Dan! Thank you very much! I wish you very nice day 😉

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • 301 redirect backlink
                          effectdigital
                          effectdigital
                          1
                          4
                          957

                        • 301 redirect single page
                          benesmartin
                          benesmartin
                          0
                          4
                          377

                        • 301 Redirect and Google...
                          AlanMosley
                          AlanMosley
                          0
                          3
                          122

                        • Should we Have Our Anchor Text Changed?
                          dustyabe
                          dustyabe
                          0
                          6
                          469

                        • Weird change in amount of links
                          BenFox
                          BenFox
                          0
                          2
                          298

                        • Domain buyouts and 301 redirects
                          Highland
                          Highland
                          0
                          2
                          310

                        • Should I 301 Redirect The index.html Page?
                          RyanKent
                          RyanKent
                          0
                          3
                          935

                        • Has there been a change in the Competitive Domain Analysis?
                          LeslieVS
                          LeslieVS
                          0
                          3
                          518

                        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