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
2
votes
2 answers

SQL query to Automatically Export to file and FTP?

I am wondering if there is such a way to automatically run SQL queries and export to file (example: csv file) and then FTP to desired location? It seems simple and would need something like this as it would be very time consuming doing this…
Jarred
  • 41
  • 1
  • 4
2
votes
2 answers

How do I do an .htaccess 301 redirect of a query string?

I'm trying to redirect a url http://domain.com/?p=106 to http://domain.com/?p=110 My .htaccess file looks like this: RewriteEngine On RewriteCond %{QUERY_STRING} ^p=106 RewriteRule / http://domain.com/\?p=110 [L,R=301] But I can't seem to get it to…
binaryorganic
  • 6,021
  • 4
  • 18
  • 19
2
votes
3 answers

How can use mod_rewrite to redirect a multiple specific URLs containing multiple query strings?

we recently migrated a site from a custom CMS to drupal. In an effort to preserve some links that our users bookmarked (we have about 120 redirects) we would like to forward the original URLs to a new URL. I have been searching for a couple days,…
2
votes
1 answer

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 args? for example: this is the request that…
1
vote
1 answer

How to redirect URL with string query to the same URL without string query?

The URL(s) like below (there are 2 websites, one with www and other without…
M.K.Dan
  • 13
  • 1
  • 4
1
vote
1 answer

nginx rewrite if query string exists

In the past a project was getting moved from / to /subdir. As the old URL structure was something like /index.php?foo/123/bar I used the following rewrite to get everything to /forum: rewrite ^\/index\.php(.*)$ /forum/$1 last; The problem with this…
KittMedia
  • 238
  • 3
  • 11
1
vote
2 answers

HAProxy encode url for querystring

I have a system that needs to preserve the original referer over multiple redirects. To achieve this I'm trying to write the referer to the URL query string. I already got that working (somewhat). http-request set-query…
elmo
  • 55
  • 2
  • 8
1
vote
1 answer

nginx + fpm + subdirectory

I have an nginx config that looks like this: location ^~ /movies { alias /var/dp.cx/movies/current/public; fastcgi_index index.php; try_files $uri /movies/index.php; location ~* \.php { fastcgi_pass…
Glen Solsberry
  • 1,536
  • 5
  • 28
  • 38
1
vote
1 answer

iptables log url query string

I log and drop packets send to specific IP/domain name. I would like to be able to log url parameters for these dropped packet. This is an example url: http://somedomain.com/test.php?param1=test1¶m2=test2 This is what i'm doing e.g: iptables -A…
rostM
  • 11
  • 2
1
vote
1 answer

Seeing '?winzoom=1' on the end of request URLs; what is it?

We were poking in our web server access logs this morning and found a request with ?winzoom=1 on the end. Given that this web server only serves firmware upgrade files to IoT devices (that we also control), we were wondering where it came from. In…
Roger Lipscombe
  • 2,177
  • 6
  • 24
  • 37
1
vote
1 answer

Dynamically Proxy 3rd party content to https

I'm using java and apache and I'm hosting non secure 3rd party content on my secure page and when I share my page on facebook, facebooks tab doesn't display the insecure content. I ran across an article that describes this behavior and I'm looking…
George
  • 145
  • 1
  • 8
1
vote
1 answer

nginx reverse proxy hide login query also on 301 redirect or full qualified url

I am spending now over two days on that issue, trying several servers (apache, now nginx), searching the whole web, but had no luck so far. First: sorry for posting my urls with http-s instead of https - this is because I am not allowed to post more…
Ranunculum
  • 119
  • 1
  • 5
1
vote
0 answers

mod_rewrite leads to 404

I'm trying to redirect (internally) example.com/snippets/_filename_ to example.com/snippets/?f=_filename_ using mod_rewrite... And it is not working. The contents of my .htaccess file, which is placed inside of the snippets directory…
1
vote
1 answer

Set Access-Control-Allow-Origin Header for specific URL that has a Query String

I'm asking this here as a last resort after trying different things / asking google / reading http://httpd.apache.org/docs/2.2/ I have the following in my apache2.conf # Allow cross domain fonts RewriteCond %{REQUEST_URI} (ttf|otf|eot|woff|svg)…
1
vote
1 answer

Nginx proxy_pass based on file extension and query string

I need to proxy_pass static assets (.js .css) based on file extension and query strings. For example: domain.com/foo.css - go to upstream1 domain.com/foo.css?V=1234 - go to upstream2 Reason is I have a 3 server setup - a router, an application…