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. How to set up 301 redirect for URL with question mark

    How to set up 301 redirect for URL with question mark

    Intermediate & Advanced SEO
    2 2 3.6k
    • 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.
    • robotseo
      robotseo last edited by

      I have encountered some issue with 301 redirect and htaccess file.

      I need to redirect the following url:

      http://www.domain.com/?specifications=colours/page/3

      to:

      http://www.domain.com/colours

      The 301 redirect command I wrote in htaccess file is as follow:

      Redirect 301 /?specifications=colours/page/3 http://www.domain.com/colours

      And it doesn't work at the moment. What is the correct way to set up 301 redirect here?

      Your help will be sincerely appreciated!

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

        You might want to try escaping the question mark, so:

        /?specifications

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • To redirect or not to redirect, that is the question
          CommT
          CommT
          0
          5
          126

        • Is 1:1 301 redirect required on indexed URL when restructing URL even if the new URL is canonicalized?
          EricaMcGillivray
          EricaMcGillivray
          0
          2
          138

        • 301 redirect to a temporary URL
          AlanMosley
          AlanMosley
          0
          4
          211

        • How to 301 redirect all URLs with /? in?
          JohnPeters
          JohnPeters
          0
          9
          331

        • Canonical or 301 redirect, that is the question?
          X-com
          X-com
          0
          8
          546

        • 301 Redirect question
          webseoservices
          webseoservices
          0
          4
          438

        • Setting up of 301 redirects
          AlanMosley
          AlanMosley
          0
          2
          547

        • How do I set up a 301 redirect if the default settings for our web servers create multiple URLs for the same page?
          ibex
          ibex
          0
          5
          648

        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