Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
1 answer
73 views

Redirect domain keeping query string

I have a domain in GoDaddy and want to redirect it to another domain in GoDaddy also but the rediret is not passing the query string, is there something I can do so the redirection keeps the query ...
Enrique Borja 's user avatar
3 votes
1 answer
581 views

Does query string case affect SEO?

Our team is working on how to handle query strings. Does it matter in terms of SEO whether we use pascal case, camel case or kebab case? Which is best? https://example.com/page?dealType=m&...
Mohammad Miras's user avatar
4 votes
3 answers
130 views

Use query parameters or hashes when implementing referral codes?

We're implementing a feature where users can generate unique referral links that they can share and receive rewards when people sign up. The pages themselves have identical content. There are two ...
dodov's user avatar
  • 171
2 votes
2 answers
64 views

From the SEO perspective, is it ok to change h1 content based on the sites query parameters?

I have a page with many cards and with filtering. The filtering is added to the query and I want the h1 to reflect what is filtered. While this is not problem to implement, should I, is this ok from ...
Jónas Grétar Sigurðsson's user avatar
5 votes
1 answer
353 views

How to make a graph in Google Data Studio showing specific url parameters that were queried in my site?

I have a search page on a hotel property website that can have up to 12 parameters in the url. Note that sometimes it may have none of these parameters. The parameters are all for optional ...
AdamJones's user avatar
  • 312
3 votes
0 answers
43 views

'[0] appended to multiple URL parameters, is something scanning for vulnerabilities?

I use a WAF that monitors suspicious query string and form POST values. Typical script-kiddie stuff like common SQL injection strings, etc. Over the last several months I've noticed a dramatic uptick ...
CodeWhisperer's user avatar
4 votes
1 answer
256 views

Does Google care about query string case sensitivity, and also does it care about correctness of casing?

Consider these two query string parameters: ?category=healthAndBeauty ?category=healthandbeauty Does Google differentiate them? What is Google's behavior if it finds both of them in my website for a ...
Ali EXE's user avatar
  • 171
3 votes
1 answer
4k views

How to redirect a URL and remove parameters using .htaccess?

I'm trying to redirect a URL ending with parameters to another URL without those parameters. https://example.com/newsroom/news-events/news.html?L=1&tx_news_pi1%5Bnews%5D=29&tx_news_pi1%...
Miama's user avatar
  • 31
1 vote
2 answers
34 views

Are there any shortcomings and/or risks using metadata in querystring?

I have a search page for our sites that carries out search depending on the values of the following parameters in the query string; q: search string cats: comma separated string matches products ...
Subliminal Hash's user avatar
2 votes
1 answer
186 views

301 Redirect from URL with query string to new URL without query string

I'm having trouble working out how to do a 301 redirect from: https://www.example.com/catalogue/catalogue.php?catSection=1 to https://www.example.com/hire-category/access-support-equipment/ I've tried ...
webfooted's user avatar
2 votes
2 answers
70 views

Can I indicate (via robots.txt, meta robots or another approach) that one or more queryString parameters should be ignored by crawlers?

I've written my own SiteSearch Script in PHP. The SiteSearch parses two GET parameters from the queryString: search // the search-phrase filters (optional) // indicating which parts of the site to ...
Rounin's user avatar
  • 2,335
3 votes
1 answer
752 views

Redirect URL ending in certain `variable=value` query string, to `URL?variable` (i.e., strip `=value`)

I'm trying to create a 301-rewrite for URLs ending with ?amp=1 to nearly the same URL and query string, just stripping the value (=1). Examples: https://example.com/?amp=1 should redirect to https://...
andrewgoma's user avatar
1 vote
0 answers
81 views

I consider if I should delete a /load.php?lang= URL resource and I don't know if it would cause a problem

I have an Hebrew 1.35.1 all-core MediaWiki website; generally I have no significant performance problems reported in Google Page Speed insights with that website besides one problem which occurs in ...
timesharer's user avatar
6 votes
2 answers
1k views

How to keep crawler robots from indexing my page when there is a query string present in the URL?

I have a /products page. In that page, users may use filters to select the products they want to see. Those filters will work using query strings like: /products?brands=X,Y&size=1,2 and so on. I ...
cbdeveloper's user avatar
0 votes
1 answer
376 views

Is a URL with querystring SEO friendly? [duplicate]

I have developed a CMS that works with ID in urls. http://example.com/content/?id=10 My customers asked me to add keywords in URLs to be seo firendly. I am not sure if there is a certain definition ...
Ali Sheikhpour's user avatar
3 votes
2 answers
122 views

Does rearranging query parameters result in duplicate content?

I've noticed one bot in particular in our log files that rearranges query parameters when scanning our website. This got me thinking. Does allowing rearranging of query parameters trigger duplicate ...
nrsbus's user avatar
  • 41
2 votes
2 answers
1k views

How to exclude URL parameters from Google Analytics reports?

The number of unique URLs on our site exceeds the limit in our Google Analytics. We tried to exclude URL Query Parameters in the View Settings but it doesn't work, GA continue to record all of them as ...
Vasyl Kosteniuk's user avatar
2 votes
1 answer
314 views

How do I list all the pages from my site indexed by Google without a query string?

I want to check which URLs are indexed in google. But I want to exclude all URLs containing a question mark in the URL. For example I want a list of pages like: https://example.com https://example....
Nebu's user avatar
  • 151
3 votes
1 answer
909 views

301 redirect rewrite query string in .htaccess [duplicate]

I am trying to perform a 301 redirect in .htaccess and I need to remove the query string ?view=full. Here is what I have that is not working: RewriteRule ^/contact/?view=full$ /contact/ [R=301,L] I ...
Guy's user avatar
  • 41
2 votes
1 answer
391 views

Redirect in .htaccess when page numbers are both in a query parameter and in the path

My blog is creating duplicate pagination, and Google understands this as duplicate content. How to 301 redirect pagination as in the following examples? https://example.com/page/33?page=34 to: https:/...
Arthur Oliveira's user avatar
3 votes
0 answers
2k views

Query string parameter (?) after fragment identifier (#)

My dev is rewriting the filters plugin for my eCommerce site as our current plugin slows pageload, and part of this is to rewrite pagination and he has asked me how the query strings should be handled....
Collo's user avatar
  • 101
2 votes
2 answers
610 views

AdSense not showing ads because links from Facebook add a query parameter

If I post a profile of a user from my website on Facebook, Facebook always adds a query parameter. That is OK, but AdSense thinks every new query parameter is a new page and needs to crawl it ...
3rKaN_BRATTE's user avatar
1 vote
1 answer
327 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 ...
posfan12's user avatar
  • 696
0 votes
1 answer
756 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=...
user9722's user avatar
  • 233
2 votes
2 answers
109 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 ...
user avatar
1 vote
0 answers
209 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}...
Raju's user avatar
  • 21
2 votes
0 answers
118 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....
user avatar
2 votes
1 answer
3k 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 ...
Roy Grubb's user avatar
2 votes
1 answer
4k 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/...
J Green's user avatar
  • 21
0 votes
1 answer
5k 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 ...
David I's user avatar
  • 23
1 vote
0 answers
32 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/ ...
critical_mass's user avatar
3 votes
1 answer
4k 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 ....
Pasakgroup's user avatar
2 votes
1 answer
1k 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/ [...
Pasakgroup's user avatar
1 vote
0 answers
90 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 ...
mat boy's user avatar
  • 339
16 votes
1 answer
12k 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 ...
Pedram's user avatar
  • 317
1 vote
1 answer
66 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 ...
koseduhemak's user avatar
1 vote
1 answer
2k 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_-]*...
John Max's user avatar
  • 113
2 votes
1 answer
45 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 ...
HLLL's user avatar
  • 161
2 votes
2 answers
52 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 ...
Ashkan S's user avatar
  • 123
3 votes
0 answers
2k 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, ...
Mohammad Kermani's user avatar
7 votes
2 answers
769 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 ...
Joe's user avatar
  • 241
2 votes
2 answers
686 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/...
Sudipta Banerjee's user avatar
5 votes
3 answers
790 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 ...
emRae's user avatar
  • 61
1 vote
0 answers
46 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 ...
pee2pee's user avatar
  • 254
4 votes
1 answer
1k 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: ...
Fabien Snauwaert's user avatar
1 vote
1 answer
2k 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 ...
kslstn's user avatar
  • 113
1 vote
1 answer
319 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 ...
mrog's user avatar
  • 113
3 votes
3 answers
3k 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 ...
Cuong Phan's user avatar
3 votes
2 answers
797 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 ...
PeterA's user avatar
  • 141
2 votes
1 answer
5k 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 - ...
Alvaro's user avatar
  • 143