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
0
votes
1 answer

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("QUERY_STRING") cat("Content-Type:…
0
votes
1 answer

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 parameter "DN", is also a valid solution for…
Ximo Dante
  • 19
  • 7
0
votes
1 answer

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://example.com/?url=http://domain.test/ redirects to…
Beelzeko
  • 1
  • 1
0
votes
1 answer

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 the server should respond with a redirect (http…
flypenguin
  • 203
  • 1
  • 2
  • 12
0
votes
0 answers

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 served on /amp route which is mysite.com/amp. These…
Faizan
  • 111
  • 3
0
votes
2 answers

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 appreciate any help! nginx-site.conf : server { root …
0
votes
0 answers

Can't use parentheses in RewriteCond QUERY_STRING

I need to capture a UID from an old url and redirect it to a new format. example.com/?uid=123 should redirect to example.com/user/123 What should work... RewriteCond %{QUERY_STRING} ^uid=(\d+)$ RewriteRule ^$ /user/%1? [L] This does not redirect at…
musicin3d
  • 141
  • 5
-2
votes
1 answer

Redirect domain with a query string to another domain?

I need to redirect a domain that does not have any content to another domain that is working. I have GoDaddy hosting. Domain 1: www.example-one.net: No content, just the domain. Domain 2: www.example-two.com: Working website. I want…
Momin Iqbal
  • 11
  • 1
  • 3
1 2 3 4
5