The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
28 views

Rewrite URI so all occurrences that match strings is rewrited

I'm new to regex and I'm trying to write a rewrite query, but without results. So I hope some one can help me to solve this. So my rewrite rule looks following: RewriteCond %{QUERY_STRING} ^(.*)...
0
votes
0answers
98 views

How to allow a wildcard for part of a querystring in IIS request filtering

I have a querystring that is made up of 3 parts. The first 2 parts are static but the last one is dynamic and can be any value. Because keywords used in part of the querystring are blocked / denied ...
0
votes
1answer
59 views

Serve data from different locations depending on a query parameter

I would like to serve data on one and the same host from different directories depending on a query parameter using Nginx. For example https://foo.bar/index.html should be served from /var/www/foo ...
0
votes
1answer
104 views

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 ...
0
votes
0answers
21 views

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

IIS Request Filtering - Why filter querystrings

In IIS7 & 8 Request Filtering feature, you can have rules to allow or deny URL and QueryString. I get why you would want to block sequences that comes in with attack vectors such as drop or ...
0
votes
2answers
636 views

Nginx & PHP-FPM: Query parameters won't be passed to PHP

I am currently setting up a machine for local development using Vagrant. Everything runs as it should, expect query parameters aren't passed to PHP on subpages. That means on www.example.com/?a=b, ...
1
vote
1answer
447 views

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

.htaccess entry to return simple text based on the URI

I have URL http://foo.com/bar?abc=123, what would be the correct entry in the htaccess file to return a simple text 200 status of abc=123? Basically, I just want to return the entire query string as ...
1
vote
1answer
701 views

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

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=...
0
votes
1answer
547 views

Ignore utm_* values with varnish?

Can I 'ignore' query string variables before pulling matching objects from the cache, but not actually remove them from the URL to the end-user? For example, all the marketing utm_source, ...
0
votes
1answer
301 views

MOD_REWRITE for rewriting GET requests [duplicate]

I need a .htaccess expression to use the second get variable or get the get variable by name. Currently my mod_rewrite alters the URL to remove index.php filename and alter the pageName GET variable ...
1
vote
1answer
277 views

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 ...
0
votes
1answer
2k views

Nginx ignore query string for caching certain files

I know my setup is a bit crazy, but whatever.... I set up Nginx on Openshift to cache map tiles (for a map viewer, you can guess the purpose, :-) ) that are served from my home network, which has ...
0
votes
1answer
87 views

htaccess redirect querystring value

I need to redirect www.URL.it/directory_one/index.php?param_one=XXX&param_two=**YYY** to www.URL.it/newpage.php?param_three=**YYY** I tried all I found online but the only things that works ...
0
votes
1answer
927 views

Nginx Rewrite with a question mark

I am trying to force Nginx to redirect/rewrite one URL that uses a query string /?cat=20 to /category/lighttpd/. Here is what I tried, which is not working: location ~ /\?cat=20 { rewrite ^ http:/...
5
votes
2answers
11k views

Nginx Rewrite Convert Querystring to Path

I whould like this simple rewrite rule: /somefolder/mypage.aspx?myid=4343&tab=overview to be redirected to: /folder/4343/overview/ I looked for some solutions and none actually worked.. I ...
1
vote
2answers
803 views

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&...
2
votes
1answer
266 views

Lighttpd QUERY_STRING escape properly

Problem is to escape query string in Lighttpd: This is url: domain/publisher/adframe-34.html?tag=xzzx&gg=yy&uu=121 and this is lighty rule: adframe-([1-9][0-9]*)\.html\?(.*)" => "ad/...
0
votes
1answer
884 views

nginx rule to capture header and append value as query string

I have an interesting problem I need to solve in nginx: one of the sites I'm building receives inbound traffic on port 80 (and only port 80) which may have a certain header set in the request. If this ...
0
votes
2answers
639 views

Do proxies and/or load balancers alter HTTP query strings by default?

Introduction to the problem Recently I was working on some request signing algorithm and it came out the opinions about including query string in the part that is then signed are "diversified". Long ...
2
votes
1answer
1k views

NGINX proxy caching - cache buster variable in querystring - possible to ignore?

We have the following url we would like to proxy cache: file.php?parameter=one&paramater2=two&r=EPOCHTIMESTAMP Query string parameter "parameter" varies between requests. So does "...
0
votes
2answers
2k views

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 ...
1
vote
0answers
394 views

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 (...
4
votes
1answer
18k views

IIS URL Rewrite Module Query String Parameters

Is it possible to use URL Rewrite to provide more complex query string functionality than the "Append query string" checkbox that it has? Specifically, is it possible to specify the keys for certain ...
1
vote
1answer
3k views

Use apache to block a url with specific query string

I have this url: mysite.com?var=var&var2=var2&var3=var3 I would like to block this specific url but not in any way affect other query strings on the same base url. Is it possible to do ...
10
votes
1answer
4k views

Apache mod_rewrite double encodes query string on redirect

We've encountered a strange issue (a bug, perhaps?) with Apache mod_rewrite's behavior when passing through query strings. To reproduce, we've set up a clean Ubuntu (oneiric) install with the default ...
2
votes
2answers
669 views

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....
3
votes
2answers
20k views

How do you redirect URLs with a query string to another host?

This htaccess snippet is supposed to redirect myhost.com/?p=1&preview=true to alt.myhost.com/?p=1&preview=true RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^myhost.com$ [NC] ...
0
votes
1answer
296 views

Mod_Rewrite - Need Help With Old Url And Query String To New Url And Query String RewriteRu

How would I rewrite the following using mod_rewrite with wildcards: http://www.serverurl.com/glossary/WordFind.php?wordInput=(Dynamic Wildcard Word Here) to: http://www.serverurl.com/index.php?...
0
votes
1answer
384 views

https get with sensitive data in the query string - ensure data is not stored

I have a bit of a complicated scenario. I'll try to explain the problem, explain what I'm doing, and see if anyone else thinks this is feasible. First off, we are PCI compliant. So, any solution I ...
2
votes
3answers
742 views

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 ...
0
votes
2answers
3k views

Mod_rewrite delete parameter in 301 Redirect

How would I go about rewriting: http://www.example.com/foo.html?order=desc&limit=all&something=else to http://www.example.com/foo.html?order=desc&something=else I want to remove all ...
0
votes
1answer
259 views

Using a redirect of any form to remove a query string with Apache

Because of the silly way iTunes works the only way to update the URL for a feed is by setting up a permanent redirect from the old feed to the new. This seems easy, but I've hit a snag. The old URL ...
4
votes
5answers
5k views

Parse HTTP requests through Wireshark?

Is there any way to parse HTTP request data in wireshark? For example, can I expose the request parameters upon an HTTP GET request (being sent by my machine), so that I don't need to read the (...
9
votes
4answers
6k views

Rewritten URLs with parameter length > 255 don't work

I'm using mod_rewrite to rewrite URLs like this: http://example.com/1,2,3,4/foo/ By doing this in .htaccess: RewriteEngine On RewriteRule ^([\d,]+)/foo/$ /foo.php?id=$1 [L,QSA] It works fine, ...
1
vote
1answer
233 views

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 ...
1
vote
2answers
1k views

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 ...