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
    27 4 1.9k
    • 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.
    • sesertin
      sesertin @sesertin last edited by

      nothing works. maybe I'll try posting another thread.

      1 Reply Last reply Reply Quote -1
      • AlanMosley
        AlanMosley @sesertin last edited by

        Well that will select your url, but what are you trying to do with it.

        i have it working on IIS server using that regex, but i cant tell you how to use it in htaccess, as i dont use it

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

          Thanks for the help. Regretfully this is my very first time writing htaccess so lot of faults can occur. I posted another thread maybe someone knows better than I do. Thank you very much for your time.

          1 Reply Last reply Reply Quote 0
          • ShaMenz
            ShaMenz @sesertin last edited by

            Hi Zsolt,

            Did you actually look at the link I gave you with the code that you needed?.

            The answer is to stop trying to use Redirectmatch and use the code I gave you in that example:

            RewriteEngine on
            
            RewriteBase /score
            
            RewriteCond %{QUERY_STRING} score=
            RewriteRule ^/*$ newlocation.html? [R=301,L]
            

            This is the simplest, cleanest, and most reliable solution to your problem.

            Sha

            1 Reply Last reply Reply Quote 3
            • sesertin
              sesertin @sesertin last edited by

              Yes, Sha looked at it and got a bit lost at once. I am totally new to server side codes and it needed a little modification but i got it working in the end. Thanks a lot.

              1 Reply Last reply Reply Quote 0
              • ShaMenz
                ShaMenz @sesertin last edited by

                Glad you got it worked out 🙂

                Don't forget if you need extra help on something you can always use the Private Message system in your profile to contact people direct.

                Have a great weekend,

                Sha

                1 Reply Last reply Reply Quote 0
                • AlanMosley
                  AlanMosley @sesertin last edited by

                  well done sha, i am afraid i got the wrong end of the stick, i thought he wanted to SELECT the url, not simply detect it.

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

                  • 301 Redirects
                    TheeDigital
                    TheeDigital
                    0
                    3
                    258

                  • 301 Redirect
                    WyzeOwl
                    WyzeOwl
                    0
                    5
                    89

                  • Redirect a 301 Redirect
                    RedCaffeine
                    RedCaffeine
                    0
                    5
                    98

                  • 301 redirect
                    Mark.RedGiant
                    Mark.RedGiant
                    0
                    3
                    322

                  • 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 Redirects
                    KT684
                    KT684
                    0
                    5
                    711

                  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