Mobile app version of vmapp.org
Login or Join
Angela700

: Proper way to handle URLs in the form of http://example.com/ On an apache server with a standard setup, when I request a URL in the form of: http://127.0.0.1/.. I receive this error in my

@Angela700

Posted in: #CanonicalUrl #Domains #Redirects #Url

On an apache server with a standard setup, when I request a URL in the form of:
127.0.0.1/..

I receive this error in my log:

[Sun Aug 30 22:52:44 2015] [error] [client 127.0.0.1] Invalid URI in request GET /.. HTTP/1.1


and HTTP status 400 is returned from apache stating "Your browser sent a request that this server could not understand."

Other servers seem to handle the same type of URL differently.

When I request:
stackoverflow.com/..

I receive an access denied message (server status 403).

When I request one of these:
google.ca/.. http://google.com/..


I receive a temporary redirect to the same URLs without the trailing dots.

I tested everything with CURL.

So my question is what is the proper way to handle a request like this?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela700

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme