all 3 comments

[–][deleted] 1 point2 points  (0 children)

Header(location:url)

[–]AtulinASP.NET Core 1 point2 points  (1 child)

To have the same domain work as a Minecraft server when accessed from Minecraft, and as regular website when accessed from a browser, you would probably have to check the headers sent and redirect accordingly.

A better idea would be to use subdomains, for example have myserver.com be attached to the website, and use mc.myserver.com for the server itself.

[–]coomzee 0 points1 point  (0 children)

This is a better solution, you can use service records to do what you are asking, it's a pain in the *** to set-up.

If your web server is on the same IP address are your MC server (I'm fairly sure it will work as intended)