{"id":4170,"date":"2017-02-13T03:43:00","date_gmt":"2017-02-13T08:43:00","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2017\/09\/30\/301-redirect-query-string\/"},"modified":"2025-06-12T16:59:25","modified_gmt":"2025-06-12T20:59:25","slug":"301-redirect-query-string","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/","title":{"rendered":"Learn about .htaccess 301 Redirect for URLs with a query string"},"content":{"rendered":"<p>Occasionally, you may need to <strong>redirect<\/strong> a URL that includes a <strong>query string<\/strong>. This will require that you use the <em>RewriteEngine<\/em> in order to have the redirect rule properly bring your viewers to the correct page. Follow the directions in the tutorial below to create a redirect rewrite rule for a specific page. The redirect will work with a query string.<\/p>\n<div class=\"jumbotron\" style=\"text-align:center;\">\r\n<p style=\"font-size: 24px;\"><strong>Professional Websites Without the Tech Headaches<\/strong><\/p>\r\n<p>Our team will build a beautiful WordPress site and take care of updates, security, and maintenance \u2013 so you can focus on running your business.<\/p>\r\n<p><a class=\"btn btn-primary btn-lg\" href=\"https:\/\/www.inmotionhosting.com\/services?mktgp=t&irgwc=1&affiliates=5001860&utm_campaign=Jumbotron&utm_source=supportcenter&utm_medium=cta&utm_term=pro-websites-cta3\">Let Us Handle It for You<\/a><\/p>\r\n<\/div>\n<h2>How to Identify a URL using a query string<\/h2>\n<p>You will need to first identify those instances where you need to use this type of rewrite rule. It\u2019s very easy to identify URLs with a query string. You will see a question mark after the page reference and then a value will be expressed. For example:<\/p>\n<p><code>https:\/\/sample-site.com\/querypage.php?id=5<\/code><\/p>\n<p>The <strong>query string<\/strong> occurs after the question mark. These values are the result of the query that may generate a particular page. In this example, you will need to rewrite the URL so that the new domain is used while keeping the query values. The code presented below is the 301 re-write for needed redirect using the query string. In this we\u2019re simply rewriting the domain to \u201cnew_domain.com\u201d while adding the value of the query string to the end of the URL.<\/p>\n<pre>RewriteEngine On \nRewriteCond %{REQUEST_URI}  ^\\\/querypage\\.php$ \nRewriteCond %{QUERY_STRING} ^id=([0-9]*) \nRewriteRule ^(.*)$ https:\/\/new_domain.com\/querypage\/%1 [R=301,L]<\/pre>\n<p class=\"alert alert-info\"><strong>What is this code?<\/strong> The \u201cRewriteCond %[REQUEST_URI}\u201d, \u201cRewriteCond %{QUERY_STRING}\u201d and \u201cRewriteRule\u201d are the Apache server commands. These commands require the mod_rewrite to be active. After each command is a regular expression used to identify or match part of the URL. For more information see <a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/rewrite\/remapping.html\" target=\"_blank\" rel=\"noopener noreferrer\">the offical Apache documentation for Apache Module mod_rewrite (version 2.4)<\/a>.<\/p>\n<h2>Breakdown of the rewrite code for understanding:<\/h2>\n<p><em>RewriteEngine On<\/em> \u2013 This enables the mod_rewrite engine module.<\/p>\n<p><em>RewriteCond %{REQUEST_URI}<\/em> This identifies the URL request submitted in the browser. The regular expression identifies the unique portion of the URL request with the expression <em>^\/querypage.php$<\/em>. The <em>^ (carat)<\/em> indicates the start and the <em>$<\/em> indicates the end of the portion of the URL being identified. The \u201c\\\u201d is used in front of any periods within the URL. Note that this condition is case sensitive. To make it case insensitive you would add the flag [NC] at the end of the statement.<\/p>\n<p><em>RewriteCond %{QUERY_STRING}<\/em> identifies the query string within the URL. In this case, it is \u201cid=5\u201d. The <em>regular expression<\/em> is used to identify the value starts the statement with a carat symbol (^), then ends it with a \u201c$\u201d.<\/p>\n<p>The final part of the redirect for your URL with a query string is the actual rewrite rule. This is the section that changes the URL as long as the rewrite conditions are met.<\/p>\n<p><code>RewriteRule ^(.*)$ https:\/\/new_domain.com\/querypage\/%1 [R=301,L]<\/code><\/p>\n<p>The beginning of the rewrite rule \u2013 <em>^(.*)$<\/em> \u2013 identifies what you\u2019re changing, which is the total URL. The second part \u2013 <em>https:\/\/new_domain.com\/querypage%1<\/em> \u2013 shows what is being rewritten. Note that the \u201c%1\u201d portion identifies the value matched in the query string ({QUERY_STRING}) condition.<\/p>\n<p>The final part of the rule \u2013 [R=301,L] \u2013 indicates the type of redirect being used \u201cR=301\u201d and the flag \u201cL\u201d which basically means that this is the end of the rule. The rewrite will stop processing at this point.<\/p>\n<p>Now that you understand the different parts of the actual rewrite code let\u2019s review the process of writing the Rewrite for a query string.<\/p>\n<h2>How to write the 301 Redirect for a page with a query string URL<\/h2>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"611\" height=\"227\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg\" class=\"optimized-lcp-image\" alt=\"RewriteEngine-on\" loading=\"eager\" fetchpriority=\"high\" sizes=\"(max-width: 768px) 100vw, 768px\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg 611w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1-300x111.jpg 300w\"><\/a> Your rewrite code should start with <strong>RewriteEngine On<\/strong>. This assumes that the mod_rewrite module for your Apache server is active. <em>NOTE: The <strong>mod_rewrite module<\/strong> is active on InMotion Hosting servers by default<\/em>.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-2.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-2.jpg\" alt=\"request URI\" width=\"100\" align=\"right\"><\/a> Determine the URL being requested that triggers the rewrite. For example, this condition can be a specific and unique page within the URL that you wish to redirect. In the example used in this tutorial \u2013 <em>RewriteCond %{REQUEST_URI} ^\/querypage\\.php$<\/em> \u2013 the requested URI is specified to \u201cquerypage.php\u201d.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-3.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-3.jpg\" alt=\"query string\" width=\"100\" align=\"right\"><\/a> The next line of the rewrite is the portion that identifies the value used in the query string \u2013 <em>RewriteCond %{QUERY_STRING} ^id=([0-9]*)<\/em>. This query matches any numeric value provided for the ID. It is later referenced in the rewrite rule with \u201c%1\u201d.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-4.jpg\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-4.jpg\" alt=\"\" width=\"100\" align=\"right\"><img><\/a>Finally, the fourth line in the code is the rewrite rule. The rewrite is not executed unless the previous listed conditions are met. In this case, here\u2019s the rewrite rule:<code>RewriteRule ^(.*)$ https:\/\/new_domain.com\/querypage\/%1 [R=301,L]<\/code>The re-written URL will look like the following:<code>https:\/\/new_domain.com\/querypage\/5<\/code>Once the URL has been rewritten, it will be sent to the browser and displayed in place of the old URL and the user will be redirected to that new location. As per the last part of the rule, this is a 301 redirect and it is then flagged to terminate at that point.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<p>This should provide you with enough information to create your own 301 redirect for pages using a query string. There are many ways to make redirects and also many ways to write the regular expression portion of the redirect. If you are not familiar with using regular expression, then our recommendation is to consult with an experienced developer. Make sure that you make a <a href=\"\/support\/edu\/cpanel\/cpanel-backups\/\">backup of your site<\/a> before making any changes to your website files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Occasionally, you may need to redirect a URL that includes a query string. This will require that you use the RewriteEngine in order to have the redirect rule properly bring your viewers to the correct page. Follow the directions in the tutorial below to create a redirect rewrite rule for a specific page. The redirect<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/\"> Read More ><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-4170","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Learn about .htaccess 301 Redirect for URLs with a query string | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how to write a basic 301 redirect for a URL with a query string.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn about .htaccess 301 Redirect for URLs with a query string | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn how to write a basic 301 redirect for a URL with a query string.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-13T08:43:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-12T20:59:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\"},\"headline\":\"Learn about .htaccess 301 Redirect for URLs with a query string\",\"datePublished\":\"2017-02-13T08:43:00+00:00\",\"dateModified\":\"2025-06-12T20:59:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/\"},\"wordCount\":863,\"commentCount\":10,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg\",\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/\",\"name\":\"Learn about .htaccess 301 Redirect for URLs with a query string | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg\",\"datePublished\":\"2017-02-13T08:43:00+00:00\",\"dateModified\":\"2025-06-12T20:59:25+00:00\",\"description\":\"Learn how to write a basic 301 redirect for a URL with a query string.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg\",\"width\":611,\"height\":227,\"caption\":\"RewriteEngine-on\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn about .htaccess 301 Redirect for URLs with a query string\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/arn\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn about .htaccess 301 Redirect for URLs with a query string | InMotion Hosting","description":"Learn how to write a basic 301 redirect for a URL with a query string.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/","og_locale":"en_US","og_type":"article","og_title":"Learn about .htaccess 301 Redirect for URLs with a query string | InMotion Hosting","og_description":"Learn how to write a basic 301 redirect for a URL with a query string.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2017-02-13T08:43:00+00:00","article_modified_time":"2025-06-12T20:59:25+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b"},"headline":"Learn about .htaccess 301 Redirect for URLs with a query string","datePublished":"2017-02-13T08:43:00+00:00","dateModified":"2025-06-12T20:59:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/"},"wordCount":863,"commentCount":10,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg","articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/","name":"Learn about .htaccess 301 Redirect for URLs with a query string | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg","datePublished":"2017-02-13T08:43:00+00:00","dateModified":"2025-06-12T20:59:25+00:00","description":"Learn how to write a basic 301 redirect for a URL with a query string.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/09\/query-string-redirect_rewrite-query-string-1.jpg","width":611,"height":227,"caption":"RewriteEngine-on"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/301-redirect-query-string\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Learn about .htaccess 301 Redirect for URLs with a query string"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/arn\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4170"}],"version-history":[{"count":9,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4170\/revisions"}],"predecessor-version":[{"id":130475,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4170\/revisions\/130475"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}