I need to be able to read the request headers coming from a redirect from a naked domain:
http://mydomain.com
to
http://www.mydomain.com/index.html
I need index.html
to be able to parse any original request path
and queries
, how can I do that?
E.g
From naked domain: http://mydomain.com/abc
to http://www.mydomain.com/index.html
and then index.html will get the abc
path request.
The question is how to be able to achieve this?
A similar question: Using DNS to redirect to another URL with a path