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

Migrating rewrite rules under subdirectory from Apache to IIS

In the old Apache hosting, we had the following .htaccess file inside public_html/adm: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /adm/index.php…
Marc.2377
  • 227
  • 2
  • 15
1
vote
0 answers

software for sharing data through URL (HTTP/HTTPS)

do you know about software, which can provide sharing files or folders through generated URL links? Software, which I can implement on my own server? Something like guest links on Sharepoint or sharing data from Google Drive through generated links…
devlin
  • 145
  • 2
  • 3
  • 14
1
vote
1 answer

How to delete hyphen and underscore from url string in nginx?

I have been trying to delete ANY/ALL hyphens - and underscores _ from an incoming URL request to my nginx server. So to be clear, when someone enters a URL as follows: https://www.example.com/my-name_is-tom ...I need for nginx to rewrite the URL as…
nsdb
  • 13
  • 1
  • 4
1
vote
1 answer

Nginx Config Location Regex With Language Code In Url

Trying to achieve constant language code in url's 1st segment with nginx regex location configuration and could not find the correct syntax. Necessary result: example.com stays example.com example.com/en stays example.com/en example.com/en/ stays…
Toms Bugna
  • 123
  • 1
  • 7
1
vote
4 answers

Lighttpd configuration for www in domain name

My website does not appear when I navigate to www.url.com, but it does work for url.com This is my lighttpd config: $HTTP["host"] =~ "^url.com$" { server.document-root = "/home/a/www/url.com" server.error-handler-404 = "/index.php" }
verhogen
  • 333
  • 2
  • 4
  • 14
1
vote
1 answer

Apache2 Virtual Host 1 file for any URL

I have an Apache2 Virtual host set up to pick up access from any URL (dns) other than the ones I have set up. Basically I want any access to this to show a page (index.html) but keep the URL the user visited in their address bar. E.G.User visits…
1
vote
1 answer

AWS VPC port forwarding on nat

I have 3 instances, one in a VPC private subnet, one NAT instance, and another outside the VPC, which acts as the web server. The instance in the private subnet acts as an app server and the development team has their code running on that.…
1
vote
2 answers

NGINX URL with parameter rewrite to URL without parameter

I have an NGINX background on my server. I cannot figure out why my rules doesn't work. How can I redirect or rewrite it so I could open URL with the same content, for example: http://www.example.com/my_dir/value/ If I have this URL, for…
1
vote
0 answers

Domain Url work but Post-Url 'not found' Ubuntu 14.04

I just installed Apache, MySQL, PHP, and phpMyAdmin in aws-EC2 virtual server. I've configured everything else. I also successfully installed a web script and my site is online. but when I visit my site post URL getring the error "not found" like…
Zafrul
  • 11
  • 2
1
vote
2 answers

Remove query string from url

We have a magento store which appends a query to our URL when you change Magento store views on the frontend. i.e. http://www.domain.com/?___store=uken Is there a way to remove the ?___store=uken with NGINX configuration? Say remove any query…
Holly
  • 1,027
  • 5
  • 14
  • 25
1
vote
1 answer

Protocol-relative URL in CSS file is being overwritten

I have this code: a.logo{background:url(//webzina.net/img/logo.png) no-repeat 100% 0} Locally (PHP Version 5.3.5), I get: a.logo{background:url(//webzina.net/img/logo.png) no-repeat 100%…
dxvargas
  • 145
  • 1
  • 1
  • 5
1
vote
2 answers

How do you Mask URLs in HAProxy?

Is there any way to do URL masking in HAProxy? I'd like to have a URL directing to my load balancer, i.e. www.example.com, redirect to another URL I have for another application. However, I'd like the user's browser to still display the original…
Grant
  • 111
  • 1
  • 6
1
vote
1 answer

Strange 404 url requests

I'm running a nodejs server with the express framework. I'm using Keymetrics.io to keep track of my app's status. I have been keeping track of 500 and 404 errors and sending them to Keymetrics and the 404 errors show something strange I have not…
1
vote
0 answers

nginx: Redirection from http://*.example.com to https://example.com showing strange behaviour

I have an SSL certificate being only valid for example.com (not valid for subdomains) and therefore want to redirect both http://example.com and http://www.example.com to https://example.com using nginx. My config file starts as follows: server { …
Œlrim
  • 111
  • 1
1
vote
3 answers

What's the point in redirecting users to "www2."?

On several large-scale websites, I've seen being redirected from http://www.example.com/ to http://www2.example.com/ One of such examples is Netflix. My hypothesis is that this is used to: Either distribute the load across data centers before even…
Arseni Mourzenko
  • 2,275
  • 5
  • 28
  • 41