Questions tagged [querystring]

A query string is a part of the URL (uniform resource locator). It consists of pairs of attributes and values. For instance, the URL https://ahost:8443/test?id=21 has a query string with the attribute "id" whose value is "21"

A query string is a part of the URL (uniform resource locator). It consists of pairs of attribute-value. For instance, the URL https://ahost:8443/test?id=21 has a query string with the attribute "id" whose value is "21"

68 questions
1
vote
1 answer

How to modify querystring using URL rewriting?

I am having very less knowledge in URL rewriting, So not sure weather this can be done or not using URL rewrite? I have a URL like www.test.com/categroy.cfm?categoryid=12&weight=any&brandid=23 For weight parameter: if its value is 'any' i want to…
user3427540
  • 169
  • 2
  • 9
1
vote
1 answer

Nginx no-cache header for ?random query string

On an Nginx install using WordPress with the Jetpack plugin, it has the ability to use domainname.com/?random to redirect to a random blog post. The problem is that this page is getting cached and after visiting the random link once. It will not…
Kevin Worthington
  • 327
  • 2
  • 6
  • 19
1
vote
2 answers

How do I drop a slash from the middle of a URL with a query string?

I have some domain redirects that point to a page on my server, and they stick a trailing slash after the filename but before the query string. So this: http://hydesim.com?dll=40.71427,-74.00597&yd=10&zm=12&op=156 …becomes…
1
vote
0 answers

Apache configuration for silent rewrite of query strings like codeigniter

Codeigniter rewrites query strings like the following: http://somedomain.com/index.php?q=something to become: http://somedomain.com/index.php/q/something I'd like to imitate this behavior on a (very) lightweight website I am developing for a…
jwir3
  • 155
  • 1
  • 2
  • 10
1
vote
1 answer

Mod_rewrite to eliminate query strings

I have been working on this for a while but I'm not finding exactly what I am looking for. I am writing a webapp to let my users create and publish pieces of HTML content in a domain and URL folder structure of their choosing. All of the content and…
Greg Frommer
1
vote
2 answers

301 Redirect and query strings

I am looking to create a 301 redirect based purely on a query string see b OLD URL: olddomain.com/?pc=/product/9999 New URL: newurl.php?var=yup My normal way of doing this would be redirect 301 pc=/product/9999 newurl.php?var=yup But this time I…
icelizard
  • 732
  • 3
  • 10
  • 20
1
vote
1 answer

nginx append query parameter to a react application

I am a beginner in Nginx and I want to append a query parameter to the URL (for instance myid) in order to serve a react application. I am using nginx/1.18.0 (Ubuntu) There are similar questions like: Appending query parameters to specific URI But I…
Ximo Dante
  • 19
  • 7
1
vote
1 answer

Nginx - Block access to portion of path only, to all but specified IP range

I'm trying block access to a portion of a path via Nginx, unless the source IP is within a specified range. I think I've got this mostly working through much trial and error, but I seem to run into trouble when the path contains query…
Ren
  • 11
  • 2
1
vote
1 answer

Two different rewrite conditions in the same .htaccess?

I need to create a rewrite condition for two specific files, according to the requested path in the URL. It's possible? Condition 1: If the URL is example.com/admin go to admin.php?uri=params. That is: example.com/admin/form =>…
1
vote
0 answers

IIS Rewrite URL not appending StringQuery

I'm trying to rewrite my URL FROM https://localhost/details.html?page=2 TO https://localhost/license When I use Redirect, it works perfectly when I request the URL https://localhost/license, but the URL changes to…
1
vote
1 answer

Appending the query params the right way when using proxy_pass with nginx

I have my nginx proxy pass config setup as follows: location /try-me { proxy_pass https://some-domain.com?id=true&zone=false } This works fine. But the problem is when someone from the browser…
Amanda
  • 125
  • 1
  • 6
0
votes
1 answer

Nginx Redirecting URL (301) with Query String to Final Destination in Single Chain

I need help with nginx redirection I want to redirect: example.com/new-clock/?bc=search&search_id=202 to www.example.com I have used this code in nginx config rewrite ^/new-clock/?bc=search&search_id=202$ https://www.example.com/ permanent; But…
Dark9Y8
  • 41
  • 5
0
votes
0 answers

Apache RewriteRule, transfer string match into query string parameter

Our website has been redeveloped, and I have been asked to ensure that the previous form of certain URIs are redirected to the new form, so that existing links, bookmarks, etc, don't break. The previous URIs were of the form /people/show/person/123…
0
votes
0 answers

nginx rewrite trying to find a file with query string included

I am trying to map friendly URLs to files in a legacy app. There is a file which will receive an action as a parameter to render different sections. I think that my rewrite condition is wrong because nginx is trying to locate the file including the…
0
votes
1 answer

Apache redirect querystring value equal to specific domain

I need to restrict a particular Query String pattern which has a URL as below https://beta-portal.example.com/public/wp-login.php?redirect_to=http://demo.testfire.net I need to restrict the redirect_to value to https://*.example.com if any other…
Karthik
  • 3
  • 2