1

There is a website which I visit a lot for some purpose, and I often visit it by typing the URL into the navigation bar manually, because I know where all the documents are. However, the URL is very long, and I would like to have a shortcut for it in my browser.

I can't just do this in my hosts file, since the URL has many subdomains. I want to be able to type in something like http://e/my/page.html in the bar and go to http://example.com/my/page.html, but I also want something like http://subdomain.e/thing to go to http://subdomain.example.com/thing, for any subdomain of example.com. I am gambling here that .e is never going to be a valid TLD, of course, but suppose I have found one I am okay with losing. Either a redirect or a hosts-file-like DNS override will do, I just want to be able to type the shorter in the browser, and for it to know I mean to go to the longer one.

Is such a redirection possible? I am okay with browser-specific solutions, but I prefer the latest version of Chrome.

1 Answers1

2

We did this for our office network with the TLD: sales In brief the solution requires-

  1. DNS server to host your TLD: "e". Configure your network use that DNS server.
  2. Web server to handle all requests and 301 redirect to the target URL as desired.
  3. Security certificate. You'll want the browser to allow your web server for all requests for that domain to your web server. Since you can't get a public certificate, you'll need to generate your own. Then import that certificate on your computers.