The codebase I have is full of files like "foo.en.html", that should be served when "foo.html" is accessed. I know the files are supposed to be "foo.html.en", but I want to avoid a mass rename if possible.
To clarify, we have files on the server that work fine:
Request:
GET /dummy/path/foo.en.html
foo.en.html HTTP/1.1
Host: 192.168.59.103:8080
Connection: keep-alive
...
Response:
HTTP/1.1 200 OK
Date: Thu, 14 May 2015 20:22:25 GMT
Server: Apache/2.4.7 (Ubuntu)
Accept-Ranges: bytes
Content-Length: 4521
...
What needs to work, but doesn't: (Making this request return HTTP 200 with the same content is a correct answer to this question)
Request:
GET /dummy/path/foo.html HTTP/1.1
Host: 192.168.59.103:8080
Connection: keep-alive
...
Response:
HTTP/1.1 404 Not Found
Date: Thu, 14 May 2015 20:17:13 GMT
Server: Apache/2.4.7 (Ubuntu)
Content-Length: 323
Keep-Alive: timeout=5, max=100
...