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.
105 questions
1
vote
2
answers
79
views
How to handle Query Strings within a URL from an SEO Standpoint?
I wrote a custom script on our site that appends a Query String to the Contact us Page URL with the product name the customer is asking about. For example, clicking the button redirects the user to ...
1
vote
1
answer
450
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 ...
3
votes
1
answer
631
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&...
4
votes
3
answers
309
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 ...
2
votes
2
answers
95
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 ...
5
votes
1
answer
402
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 ...
3
votes
0
answers
90
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 ...
4
votes
1
answer
360
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 ...
3
votes
1
answer
5k
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%...
1
vote
2
answers
64
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 ...
2
votes
1
answer
236
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 ...
2
votes
2
answers
116
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 ...
3
votes
1
answer
992
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://...
1
vote
0
answers
88
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 ...
6
votes
2
answers
2k
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 ...
0
votes
1
answer
418
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 ...
3
votes
2
answers
238
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 ...
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 ...
2
votes
1
answer
482
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....
3
votes
1
answer
1k
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 ...
2
votes
1
answer
436
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://...
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....
2
votes
2
answers
726
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 ...
1
vote
1
answer
446
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
1
answer
859
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
2
answers
142
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
0
answers
219
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}...
2
votes
0
answers
128
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
1
answer
4k
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
1
answer
5k
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
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 ...
1
vote
0
answers
35
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
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 ....
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/ [...
1
vote
0
answers
97
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 ...
18
votes
1
answer
15k
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
1
answer
79
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
1
answer
3k
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_-]*)$...
2
votes
1
answer
237
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
2
answers
55
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 tags ...
4
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, Tim ...
9
votes
2
answers
1k
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
2
answers
705
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
3
answers
835
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
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 ...
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:
...
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 views
...
1
vote
1
answer
415
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 ...
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 ...
3
votes
2
answers
838
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 ...