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. Intermediate & Advanced SEO
    4. Redirect 301

    Redirect 301

    Intermediate & Advanced SEO
    8 3 174
    • 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.
    • SGacic
      SGacic last edited by

      Hi,

      I `m redirecting some pages in  htaccess

      The first 15 pages that i redirected it worked. But the last 3 dont work, and i cant  figure it out why it is not working.

      Redirect 301 /analyseverktoy/ /webanalyse
      Redirect 301 /index.php/ledige-stillinger/ /
      Redirect 301 /?page_id=352/ /

      Anu suggestions?

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

        It doesn't work because you are not doing it correctly

        The Redirect command has 3 parameters:
        1. The redirect type (in your case 301)
        2. The location of the file/directory you want redirected relative to the root of your site
        3. the full URL of the location you want that request sent to

        You are mistaken the third parameter, because you are not putting there the full path. You should put something like this:

        Redirect 301 /analyseverktoy/ http://www.yoursite.com/webanalyse
        Redirect 301 /index.php/ledige-stillinger/ http://www.yoursite.com/
        Redirect 301 /?page_id=352/ http://www.yoursite.com/

        Francisco_Meza 1 Reply Last reply Reply Quote 2
        • Francisco_Meza
          Francisco_Meza @SorinaDascalu last edited by

          That's exactly how I do mine. The full URL is what you are missing. You need the http:// in it.

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

            Thanx, one of them is working...but the other ones stil dont work....

            Working: Redirect 301 /index.php/ledige-stillinger/ http://mysite.com/

            Not Working:

            Redirect 301 /?page_id=352/ http://mysite.com/
            Redirect 301 /googleanalitycskurs/ http://mysite.com/googleanalyticskurs
            Redirect 301 /sokemotoroptimalisering-tips/ http://mysite.com/sokemotoroptimaliseringtips/

            Thank you for the advice.

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

              Any suggestions why it does not work or how we can fiks it?

              SorinaDascalu 1 Reply Last reply Reply Quote 0
              • SorinaDascalu
                SorinaDascalu @SGacic last edited by

                If you defined the redirect rules correctly and some works and some don't check if these new defined rules don't conflict with others previously declared. What errors do you get?

                SGacic 1 Reply Last reply Reply Quote 0
                • SGacic
                  SGacic @SorinaDascalu last edited by

                  I get a 404. page not found.

                  The strange part is that some are working and the other ones are not.

                  SorinaDascalu 1 Reply Last reply Reply Quote 0
                  • SorinaDascalu
                    SorinaDascalu @SGacic last edited by

                    And when you look at the final URLs in the address bar of your browser, do these URLs that return 404 errors correspond to the URLs you set up with the Redirect rule?

                    Usually when your redirects are messed up you get 500 Internal Server errors, not 404 errors.

                    Maybe the problem is not in how you defined the redirects in the .htaccess file, but you are choosing the incorrect URLs to redirect to.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • If you do 302 redirect then change to 301 redirect do you lose all link juice?
                      EricaMcGillivray
                      EricaMcGillivray
                      0
                      3
                      792

                    • 301 Redirects?
                      MickEdwards
                      MickEdwards
                      0
                      3
                      148

                    • How to use a 301 Redirect when the first 301 Redirect is not the same as what's indexed?
                      PatriotOutfitters81
                      PatriotOutfitters81
                      0
                      3
                      66

                    • 301 Redirect To Another 301 Redirect
                      cbielich
                      cbielich
                      0
                      5
                      247

                    • 301 redirect subdomain to path and 301 for popular pages
                      Mike.Goracke
                      Mike.Goracke
                      0
                      2
                      187

                    • 301 redirects.
                      Matt-Williamson
                      Matt-Williamson
                      0
                      5
                      270

                    • Redirects 301
                      PedroM
                      PedroM
                      0
                      3
                      339

                    • Multiple 301 redirects considered a redirection chain?
                      jmueller
                      jmueller
                      1
                      16
                      5.0k

                    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