Skip to main content

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"

0 votes
0 answers
36 views

.htaccess - Apache rewrite rules, some work, some don't

this Rewrite rule is forwarding to url: https://www.fliesen-alfers.de/fliesennivelliersysteme/verlegefix-keilsystem/basis-sets/1-5-mm-basis-set/?number=102 as expected: RewriteCond %{QUERY_STRING} (^|&...
user24710148's user avatar
0 votes
0 answers
66 views

Remove Query String from Redirected URL $request_uri?

I am new to Nginx and I'm facing an issue with my Nginx configuration. I have set up a list of redirects using the map directive ($request_uri) as shown below: map $request_uri $staticRequestRedirect {...
petterik's user avatar
0 votes
1 answer
342 views

Apache - Is it possible to rewrite urls based on fragments (hashtag)?

Using Apache/2.4.54 (Win64) I have been requested to rewrite from old domain to new like this From https://oldtest.mydomain.com/company/customerpage/#/customer/<getThisNumber>/something To ...
rhellem's user avatar
  • 315
0 votes
1 answer
46 views

RApache get Query String from executing URL - howto?

I would like to get the query string from the executing URL into my R. I've installed and configured R Apache. Everything works to this extend. My R code so far is: query_string <- Sys.getenv("...
Simon Giesen's user avatar
0 votes
1 answer
298 views

nginx remove all query parameters and add a new one to a react application

I want to discard all the query parameters and add a new one (for instance DN=$ssl_client_s_dn). The reason is to prevent the client from sending this query parameter. Replacing the value of the query ...
Ximo Dante's user avatar
1 vote
1 answer
972 views

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: ...
Ximo Dante's user avatar
1 vote
1 answer
561 views

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 ...
Ren's user avatar
  • 11
2 votes
1 answer
639 views

Sending selective args from Nginx proxy to the upstreams through proxy_pass

I have a Nginx proxy configured for a Minio S3 object storage server. Can I remove some of the query params (more than one agrs) when I'm passing a request to the upstream (Minio) and keep the rest of ...
Mehdi Hamidi's user avatar
1 vote
1 answer
899 views

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:...
João Williams Balaniúc's user avatar
0 votes
1 answer
3k views

Redirect to a URL passed in the query string with Apache 2

I'm pretty newbie in URL redirection, and I would like to create this kind of redirection: http://example.com/?url=http://domain.test/ to http://domain.test/ The result I'm having so far is: http://...
Beelzeko's user avatar
1 vote
0 answers
303 views

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 ...
Wendel Souto's user avatar
0 votes
1 answer
2k views

http redirect and append client IP as URL query

i have this weird issue which we need as a workaoround for an internal application limitation. this is what I need, either from haproxy or nginx: something calls http://my-server/?some=query_string ...
flypenguin's user avatar
0 votes
0 answers
435 views

How to serve PHP on Nginx on a Query Parameter ?amp=1?

I have few virtual hosts (sites) running on this single server. Right now, on this root virtualhost i have a forum (running on Docker) but served by Nginx mysite.com and I have its AMP pages being ...
Faizan's user avatar
  • 111
3 votes
1 answer
13k views

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 ...
Amanda's user avatar
  • 145
0 votes
2 answers
1k views

Query string issue with php-fpm and nginx

I am trying to run a PHP app using Nginx. Rewriting URLs work properly, however, query strings are not passed to the PHP files. Am I doing something wrong in the below configuration? I would ...
Gürkan Güran's user avatar

15 30 50 per page
1
2 3 4 5