A particular gaming platform allows clients to connect to game servers by entering a URL into their web browser. Upon entering the URL in the web browser and pressing enter, the application launches and joins the specified server. This URL takes the form of a specific application layer protocol, followed by an IP address and port. Ex. xyz://server-ip:port
I wish to redirect a subdomain of my website to the address of my game server. If my domain is example.com
, I'm looking for play.example.com
to redirect to xyz://server-ip:port
.
Using a forward resource record did not work, nor did using a PHP header redirect, presumably because both are strictly HTTP redirects. Some ideas that I've had include using a <meta>
tag, a .htaccess file, javascript, or another resource record, but I'm not familiar enough with any of them to know which, if any, are viable.
Location:
header didn't work. The spec says that it can contain any URI, it doesn't limit it to just HTTP. – Stephen Ostermiller♦ Dec 7 '16 at 15:26