Questions tagged [url]

Uniform Resource Locators are a generic scheme for specifying the location of resources. They are most commonly used for identifying locations on the Internet (such as webpages and email addresses) but can be used to reference almost anything.

519 questions
1
vote
1 answer

Redirect URL in IIS to different domain and remove portions of the URL

We currently have URLs like: https://tfs.mydomain.com/tfs/MyProjectCollection/Project/_workitems that I need redirected to: https://dev.azure.com/MyOrg/Project/_workitems Using the HTTP Redirect module in IIS I've been able to forward requests…
deadlydog
  • 388
  • 1
  • 5
  • 10
1
vote
0 answers

404 on script URL after switching server from Apache to NGINX

I have a woocommerce site that runs a script for accounts that has stopped working after moving from Apache to Nginx. example.com/zynk/index.php/wp_posts?select=ID,meta_value&where=post_type.... The script gets the parameters using $urlParts =…
Dan C
  • 11
  • 1
1
vote
0 answers

URL rewrite is not working as expected IIS7

I am trying to achieve the following rewrite URL in IIS 7: subdomain.domain.com/username should become subdomain.domain.com/?username When I try to match the pattern /([^/]+) and test it with /username, it gives me {R:0} /username {R:1}…
Templar
  • 11
  • 1
1
vote
0 answers

IIS 10 URL Rewrite HTTP to HTTPS redirect on same port

I would like an easy redirect but doesn't work. Original: http://exwebsite.com:8084 to Redirect: https://exwebsite.com:8084 Can u help me? The simple and ...url="https: // {HTTP_HOST}/{R:1}"... work correctly…
David
  • 11
  • 2
1
vote
1 answer

nginx proxy_pass with flexable subpath possible?

currently I have this as my proxy_pass which works fine location = /sms/resetpass { proxy_pass http://xxx.xxx.xxx.xxx/api/resetpass; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; …
Dora
  • 341
  • 1
  • 5
  • 15
1
vote
1 answer

Apache redirect - remove all queries

I am trying to remove all queries in URL: https://api.myserver.com/image.png?arg=0 should become https://api.myserver.com/image.png I used this: RewriteCond %{QUERY_STRING} ^arg=0$ RewriteRule (.*) $1? …
c0dehunter
  • 293
  • 1
  • 4
  • 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

URL rewriting and indexation by search engines

For a website, I want using URL rewriting to allow easy access to pages and better indexation. For instance, assume the page about Mozart is: www.site.ext/composers/index.php?cmd=composers&id=123 Instead of this, I would like that the visitors…
OuzoPower
  • 347
  • 1
  • 4
  • 11
1
vote
1 answer

Apache adds "./" to file names with colons in them

I ran in to this today running httpd on Centos 7.3. We do a lot of raw getting of apache-generated HTML docs for file download. Apparently, if a file name has a colon, apache well prepend "./" to the file name within the HTML. This tripped up our…
Locane
  • 429
  • 1
  • 8
  • 20
1
vote
0 answers

nginx rewrite without url decoding

I use rewrite on my nginx server to allow URLs like https://www.example.com/en/product/apple.html to pass en, product and apple.html to a single PHP script like so: rewrite ^/([a-zA-Z0-9_\-]+)/([a-zA-Z0-9_\-]+)/(.+)$…
jonr
  • 23
  • 4
1
vote
1 answer

Accessing phpmyadmin in Nginx directly from IP address (without a subdomain)

In an Ubuntu 16.04 Nginx environment which has some sites working fine, I've installed phpmyadmin: cd /var/www/html wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip find ./ -type f -iname '*phpmyadmin*.zip' -exec unzip…
Arcticooling
  • 1
  • 3
  • 7
  • 22
1
vote
1 answer

How serve different content using apache and (maybe) mod_rewrite

There are some files (with unique names) in a directory structure like this: /var/www/domain1/unique_filename1 /var/www/domain2/unique_filename2 /var/www/domain3/unique_filename3 At the moment, all of the domain directories are accessible as…
Ehsan Khodarahmi
  • 305
  • 1
  • 7
  • 18
1
vote
0 answers

Random Sub Domains being generated

I'm having a strange issues where a coworker of mine received a google alert about 'Deeper Learning' content -- this normally directs her to any new happenings on her keyword'Deeper Learning' This alert directed here to our site…
kayhart
  • 11
  • 2
1
vote
1 answer

nginx upstream's wrong response

I'm having a problem with my upstream. There is a location block for the web application as below. I'm doing A-B test with this. location / { include backend.conf; } backend.conf proxy_buffering on; proxy_set_header RIP…
1
vote
1 answer

nginx proxy domain to url, display old domain

I have two sub-domains which I want to link in the following way: https://suba.example.org/ is my main subdomain, https://subb.example.org/ is my secondary subdomain. On suba I have a server running a web application, subb is only for…
John
  • 31
  • 6