Questions tagged [query-string]

The part of the URL after the first question mark and before the fragment identifier, often used to pass variable URL parameters to the underlying script.

Filter by
Sorted by
Tagged with
1
vote
1answer
28 views

Consequences of adding more URL query parameters?

I'm developing a website to display data in a database. As I add features I find that I need more and more query parameters. Are there negative consequences in terms of site visibility, SEO, etc. if ...
0
votes
1answer
48 views

Redirecting URL with & without query string?

If I setup a 301 redirect for the first URL path below will that also redirect all the paths below that contain a query string? For example: /6-light-oval-chandelier-espresso?pp=0&epik=...
2
votes
2answers
48 views

How to handle URL query strings with over 1 million combinations

I have an interactive page on my website that produces millions of combinations. Users can share a link to the specific combination. Something like: example.com/tool?id1=blah&id2=blahagain This ...
1
vote
0answers
22 views

How do I create a RewriteCond for when the query string contains “*” or “?”

If query string contains "star symbol" or ? then I need to redirect to other page, how to check in the following condition that thequery string contains "star symbol" or ?. RewriteCond %{QUERY_STRING}...
0
votes
0answers
16 views

Difference between Short URLs and Clean URLs

Clean URLs is a concept in Drupal; for example Drupal 7 default URL formatting is example.com/?q=node/83 though it could be changed just to example.com/node/83 by activating Clean URLs based on Apache ...
2
votes
0answers
75 views

MediaWiki: Remove debug query strings (/load.php?debug=" )

When I run a Google PageSpeed insights test I get problem reports for various long URLs with query strings for /load.php?debug=. These problem reports appear for the loading of any webpage whatsoever....
2
votes
1answer
144 views

How to form redirect or rewrite where query string contains portion I want to extract to new query string

I've transferred an old custom-made site to Mediawiki and I have many internal and external links to my old pages that I want to redirect to the appropriate wiki page. There are many links to the ...
2
votes
1answer
1k views

Htaccess redirect pages from subfolder to root directory while preserving any query string

I have moved pages in various sub directories to the root directory and want to set up a 301 redirect for each page and keep any query string that might be present. For example: www.example.com/...
0
votes
1answer
1k views

IIS 7.5 maxQueryStringLength configuration question

We have a Windows 2008 R2 server running IIS 7.5. Applications running inside are occasionally making GET requests to themselves with a rather long parameter list (up to 3000 chars) and this, when ...
1
vote
0answers
24 views

Disallow URLs made with mod_rewrite in robots.txts [closed]

Here is my robots.txt file: User-agent: * Disallow: /head.php Disallow: /head/ Disallow: /head Disallow: /header.php Disallow: /header/ Disallow: /header Disallow: /footer.php Disallow: /footer/ ...
3
votes
1answer
1k views

How to Redirect Pages with Query String?

I want to Redirect as seen below: https://example.com/p1/p2?sort=p.model&order=ASC&page=2 to https://example.com/p3/p4?sort=p.model&order=ASC&page=2 Also, I have this code in my ....
2
votes
1answer
705 views

How to redirect all pages of site A, including those with query strings, to homepage of site B

I want to redirect all pages of SiteA to homepage of SiteB. I used this code in SiteA's .htaccess file: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(.*)$ https://SiteB.tld/ [...
1
vote
0answers
68 views

Why would Google give rich snippets to a non canonical URL but the canonical never displays them?

Various parameters slightly adapt my page's content such as ?showreviewsall or ?filterresults. All pages with parameters point to the canonical through a canonical tag. Since the beginning, Google ...
3
votes
1answer
2k views

Should query strings be included or removed from the canonical tag?

Should I remove the entire query string from URLs in the canonical meta tag? For example this URL: https://example.com/Turkey/Istanbul/Vehicles/Car/Peugeot?b=11&d=2 This b=11 returns a list of ...
1
vote
1answer
55 views

Google Tag Manager / Google Analytics - multiple internal site searches and parameter cleaning of uris

I use Google Analytics to track the searches users do on my website. I have no query parameter for searches (nothing like q=mykeyword). Therefore I use Google Tag Manager to send a "fake" value for ...
1
vote
1answer
1k views

How to keep question mark in URL rewriting with a GET method?

I am trying to use URL rewriting to rewrite search-en.php?q=abc to pages-afficher-recherche.php?lang_abbreviation=en&q=abc and I did RewriteRule ^search-([a-zA-Z]{2})\.php\?q\=([a-zA-Z0-9_-]*...
1
vote
1answer
34 views

Query parameter for page as normal WordPress “pretty” permalink [closed]

I have a page that is generated dynamically based on a query parameter, which I wish to "mask" as a normal "pretty" permalink. Right now I'm using: https://example.com/dynamic-page/?parameter=xxx ...
2
votes
2answers
40 views

Will search engines react to querystring ids as different pages?

I've implemented my website to be like domain/objects?id=xxx like domain/objects?id=bikeId What I am worrying is the way that search engines will react to it. I've already implemented the meta ...
2
votes
0answers
1k views

Matrix URL vs query string URL

Matrix URL is a way to pass data in URL to the program, it's like a query string, but a bit nicer. Matrix URL notation is an idea first introduced in a 1996 proposal by the founder of the web, ...
6
votes
1answer
117 views

Is there a set of well-known tracking parameters besides utm_*?

I am collecting a large number of URLs. I am not responsible for the websites in question, and I want to remove tracking parameters that do not affect the content of the website. With the tracking ...
2
votes
2answers
530 views

Shall we make AMP page URL SEO friendly or using Query is ok?

We are planning to make AMP pages for our dynamic site. My concern, Is it ok to use QueryString to pass the values or shall we keep URL clean without any parameters. For example: example.com/amp/...
5
votes
3answers
603 views

Temporarily redirect WordPress url with query string from root directory to new url

This post seems to have my answer: How can I redirect old WordPress URL (with a query string) to new URL using .htaccess? However, this does not seem to play nicely with WordPress' previous rewrite ...
1
vote
0answers
40 views

Exclude specific restful URLs from Google Analytics

I have a bunch of line items in my report. For example: page/1 page/2 page/1/session/ABCDEFGHIJ page/2/session/MNBVCFRTY I've read articles on how to ignore querystring parameters but how would I ...
3
votes
1answer
635 views

“Resources with a “?” in the URL are not cached by some proxy caching servers”

I'm using query strings to burst out of cache, e.g.: mysite.css?201708311009 where the date is that of the last modification date of the file. Running a speed test on PingDom gets me this result: ...
1
vote
1answer
957 views

How to exclude traffic with a URL query String from Google Analytics using Google Tag Manager

I tried: Create Variable: Variable type: URL Component type: Query Query Key: "ignoreme", URL Source: Page URL/Default Create Trigger: Trigger type: Page view This trigger fires on: Some page ...
1
vote
1answer
97 views

Why do some search results contain the search term in a query string?

When I search Google, I sometimes see URLs in the result list with query strings that look like they contain SEO related data. For example, when I search Google for "nike", the results included these ...
2
votes
3answers
487 views

Prevent Google from indexing and caching pages with query strings

I have a WordPress site is running on my domain. There are some pages that are indexed and cached by Google with query string like this: example.com/category/xxx/?post_type=product. I want Google to ...
3
votes
2answers
585 views

What is adding p, subid, and uid variables to the query string of a site url?

One of our sites is seeing ~100 sessions a day landing on the home page with a query string like the following appended: ?p=1471086892&subid=526&uid=48752857D549575A Each one has the same ...
2
votes
1answer
3k views

Custom query for Visual Composer's Post Grid in Word Press

A site in Word Press. It has several custom post types. Each of them has several taxonomies that, coincidentally, are the same. Specifically: - Press <-- CPT - Country <-- Taxonomy - ...
1
vote
2answers
48 views

Blocking every URL with “?” in it

Will below Disallow function will block every URL which has "?" in it? Disallow: /*?*PrintPage=yes* I was actually checking few pages with "?" in them and they were not indexed in Google and then I ...
2
votes
1answer
456 views

Should out-of-range pagination query produce a 404?

The answer seems like a plain-as-day yes, but I'd rather have a more certain idea. Should an out-of-range pagination query, e.g. 11 of 10, produce a 404? I'm working on a React.js application where ...
3
votes
1answer
417 views

Apache mod_rewrite problem with adding a query string on an internal rewrite

I need to replace /xyz with /index.html?dh=xyz. I use the following config in httpd.conf: RewriteCond %{QUERY_STRING} "!dh" RewriteRule "^/(.*)$" "/index.html?dh=$1" [R] This works perfectly if [R] ...
5
votes
4answers
3k views

How do I disallow a specific query string in robots.txt?

I have the URL http://www.example.com/shopping/books/?b=9 and the following robots.txt file: User-agent: * Disallow: /?b=9 But when I test this in Google Webmaster Tool's robots.txt tester it is ...
0
votes
1answer
1k views

Is the order of querystring parameters a factor in duplicate content in Google?

I was reading this post here. But it does not answer my question fully. I have 2 URL's display that the same content, but contain the exact same query string parameters, the URL's are pretty much the ...
2
votes
2answers
225 views

Do the internal searches need to be by GET for SEO purposes?

I have a site with products, which can be searched using a convoluted search form, with quite a few input fields. I send the data by POST, to the same page, so I can list all products in the URL: /...
1
vote
0answers
36 views

Query strings showing in SERPs

One of our sites got hacked, we believe we have resolved this issue, but when doing a site:example.com in Google, we are still seeing query strings like: example.com/?black-book-subtitles. Could it ...
2
votes
2answers
2k views

Remove everything after the question mark in the URL?

Is there any way to redirect a page with a question mark in the URL, to the same page, but with everything after the question mark removed? For example: From: /residential-properties/projectname/?...
2
votes
2answers
1k views

SEO on pages whose content is determined by query string in URL

I have a blog as part of my site. The address of the blog is ../blog.php. If you go to blog.php you will see the most recent blog entry and there will be links to other entries. The links to other ...
3
votes
1answer
1k views

Would a query string at the end of an img src url effect SEO negatively?

Im trying out a new image serving solution that serves responsive images. It does so by detecting the img tag elements width and then serving a version of the image that is suitable for that size. It ...
1
vote
2answers
208 views

Robots Meta Tag and query strings

I am trying to find out something about this tag: <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> If I have a dynamic page like these example.com/product.aspx?ProductID=123 example.com/...
1
vote
1answer
170 views

Can punctuation inside a query string be valid?

I'm still working on an apache module to fight google's ability to find duplicate content on my website and slashes are apparently throwing apache off. My question is this. Is punctuation perfectly ...
1
vote
1answer
6k views

URL encoded query string with embedded null %00 breaks on some servers

We have need to send an encrypted string in a query string to a web page. Sometimes because of the encryption, there is an embedded null in the string. Here is an abbreviated example of such a string, ...
1
vote
1answer
421 views

Is it best practice to exclude the pagination query parameter in Google Analytics?

Our site has 4 query parameters on site. They are all for the Blog section and only the pagination parameter can be added to another query parameter: Category Tag Author Pagination parameter ...
0
votes
3answers
4k views

How can i check the query string parameters for Internet Explorer in Google Analytics?

I am testing Google Analytics query string parameters in Internet Explorer 10. I am unable to find the required attributes in Network Tab. Any help? Would any add-ons help me?
2
votes
1answer
353 views

Redirect query string URL via .htaccess

I am trying to redirect all query strings to a new URL. Search query example www.example.com/?s=cars to resolve to www.example.com/?search_gcse/?q=cars ("cars" is just an example). What is the ...
5
votes
2answers
23k views

How can I use .htaccess to respond with 403 forbidden status for URLs that contain a query string?

Some bots have been crawling my site for every link that ends with: ?utm_source=dlvr.it&utm_medium=twitter I haven't checked out its IP. Then other bots (10+) follow the link rules ?utm_source=...
-1
votes
0answers
17 views

Hiding and redirecting extensions on my webpage [duplicate]

I want to hide extensions on my webpage using the .htaccess file. I have managed to do it by using this code; RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L]...
3
votes
1answer
827 views

Usage of special characters in the URL path instead of query-strings to allow relative linking in a web proxy

I've received complaints that the links that my software is generating aren't following the W3C URL-specification. http://www.w3.org/Addressing/URL/url-spec.txt The links generated looks like this: ...
5
votes
1answer
2k views

Broken URL requests with “?rand=0.nnnnnnnnnnnnnnnnn” querystrings from Chrome users

I've recently noticed a number of errors in our sites' error logs which are a result of what appears to be a cache-buster being incorrectly added to URLs. The requests in question all seem to have "?...
2
votes
2answers
7k views

What rewrite rule would show the 410 (gone) status for removed forum URLs?

I have removed a forum system from my CMS and now I want to return an 410 status code whenever a search engine visits the former posts. I know that I have to use a number of Rewrite Rules to do the ...