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
0 votes
1 answer
40 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
573 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
117 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 ...
9 votes
2 answers
39k 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=...
2 votes
2 answers
62 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
348 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
41 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
233 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 ...
2 votes
1 answer
387 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
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%...
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 ...
2 votes
1 answer
180 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
1 answer
446 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 ...
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 ...
3 votes
1 answer
729 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
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 ...
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 ...
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 ...
7 votes
2 answers
735 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 ...
0 votes
1 answer
366 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
106 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
592 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 ...
2 votes
1 answer
307 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
904 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 ...
3 votes
1 answer
4k views

Apache rewrite rule that matches a specific query string

I need to rewrite a specific WordPress URL to a 404 error: ?page_id=15 to 404 How can I match the query string? Apparently Apache doesn't feed that to the rewrite mod...
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 - ...
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
107 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
1 answer
317 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
749 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
4k 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/?...
1 vote
0 answers
207 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
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 ...
2 votes
0 answers
117 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

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/...
29 votes
2 answers
22k views

Is a URL with a query string better or worse for SEO then one without one?

I want to know, is there a huge difference in terms of SEO between these URLs: example.com/ontario/toronto/listings or example.com/listings.php?p=ontario&c=toronto Will one URL rank higher ...
0 votes
1 answer
4k 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
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/ ...
31 votes
5 answers
4k views

Why is it preferable to use paths with slashes instead of query-string variables in a web page URL?

Why is it preferable to use paths with slashes instead of query-string variables in a web page URL?
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
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 ...
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 ...
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 ...
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_-]*...
2 votes
1 answer
43 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
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 ...
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, ...
2 votes
2 answers
685 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/...
3 votes
2 answers
794 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 ...