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.

506 questions
256
votes
7 answers

What’s the point in having “www” in a URL?

Other than for historical reasons, is there is reason to have “www” in a URL? Should I create a permanent redirect from www.xyz.com to xyz.com, or from xyz.com to www.xyz.com? Which one would you suggest and why?
Quintin Par
  • 4,293
  • 10
  • 46
  • 72
97
votes
1 answer

How can one distinguish the host and the port in an IPv6 URL?

URLs always have this format: ://[:]/[][#] The problem is that IPv6 uses colons, just like the separator of port and host, e.g: 2001:db8:1f70::999:de8:7648:6e8 But what if this is the host, and I want to connect…
user42235
71
votes
21 answers

How the heck is http://to./ a valid domain name?

Apparently it's a URL shortener. It resolves just fine in Chrome and Firefox. How is this a valid top-level domain? Update: for the people saying it's browser shenanigans, why is it that: http://com./ does not take me to: http://www.com/? And, do…
Chris
  • 1,381
  • 1
  • 12
  • 22
39
votes
3 answers

Simple apache2 redirect from one domain to another

What I want to do is the following: My domain xy.example.com no longer exists. Thus I want to do a simple redirect to the new domain abc.example.com. It should be a redirect, that also works when someone types in the browser bar…
JohnnyFromBF
  • 1,239
  • 6
  • 21
  • 25
31
votes
2 answers

Why does this URL with excessive preceding dots resolve to an IP address?

http://.................1168951531 Which, when put into chrome, previews to the URL http://69.172.200.235/, which redirects (by external server response code 3XX) to www.test.com, but that is outside the scope of what I'm trying to figure out. How…
Shadowjonathan
  • 453
  • 4
  • 7
27
votes
2 answers

Disabling URL decoding in nginx proxy

When I browse to this URL: http://localhost:8080/foo/%5B-%5D server (nc -l 8080) receives it as-is: GET /foo/%5B-%5D HTTP/1.1 However when I proxy this application via nginx (1.1.19): location /foo { proxy_pass …
Tomasz Nurkiewicz
  • 674
  • 1
  • 5
  • 10
24
votes
13 answers

Using .local for internal websites

Is it okay to use app.mycoolname.local for URLs that are private / internal? We have several applications that are web based, but they are private apps and are not exposed to the public. We have been using ".net" for some of these, which doesn't…
Brian
18
votes
5 answers

Can an attacker sniff data in a URL over HTTPS?

Can data included in a URL be considered secure if the connection is made over HTTPS? For example, if a user clicks a link in an email that points to https://mysite.com?mysecretstring=1234 would it be possible for an attacker to grab…
James Cadd
  • 179
  • 1
  • 2
  • 10
17
votes
2 answers

Prevent URL Rewrite rules from being inherited by subdirectories in IIS7

I have a URL Rewrite setup for clean URLs in a CMS and my web.config looks like this:
Rich Jenks
  • 431
  • 1
  • 3
  • 8
17
votes
5 answers

How can I enforce that my urls always start with www?

I want to ensure that users come to www.mydomain.com even if they arrive through the alias mydomain.com. This is so that I have control over cookies on subdomains, and so that Google sees one single domain and not a hodge-podge of URLs. How can I do…
Magnar
  • 1,017
  • 2
  • 11
  • 15
15
votes
6 answers

to www or not to www

Possible Duplicate: What’s the point in having "www" in a URL? Should I use www in front of a URL or not? Some sites say we should and some say the opposite. Pros Cons If there is no www is in front of the URL, what should I put in my .htaccess…
marc-andre menard
15
votes
1 answer

Who (What?!) is "http://1.1.1.1/bmi"?

I'm not sure if this is the place to ask but I found some pages who contain links in them that start with "http://1.1.1.1/bmi". Who or what is 1.1.1.1? or maybe http://1.1.1.1/bmi has a meaning more than just 1.1.1.1?
user7777777777777
  • 201
  • 1
  • 2
  • 3
13
votes
4 answers

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, except for when "1,2,3,4" turns into a string longer…
philfreo
  • 987
  • 2
  • 9
  • 22
13
votes
1 answer

How to set up Google ShortName service for my domain, so that the FQDN isn't needed

The blog post "A 'tinyurl' service for your domain" explains how to set up a ShortName service for your domain using Google Apps. For example, if your domain is example.com and you use Google Apps, you can configure it so that http://go.example.com…
TomOnTime
  • 7,567
  • 6
  • 28
  • 51
12
votes
3 answers

IIS URL Rewrite HTTP to HTTPS with Port

My website has two bindings: 1000 and 1443 (port 80/443 are in use by another website on the same IIS instance). Port 1000 is HTTP, port 1443 is HTTPS. What I want to do is redirect any incoming request using "htt p://server:1000" to…
Andy Arismendi
  • 1,168
  • 4
  • 16
  • 27
1
2 3
33 34