Is there any way to create Internet shortcut files that will work with all operating systems (including Mac, Windows, and Linux)? I often switch between Windows and Linux, and I haven't yet found a way to create an internet shortcut file (on the desktop or in a local folder) that is compatible with all operating systems.
I found a reasonable cross-platform solution. This HTML document could be used as a shortcut to stackoverflow.com, and it would immediately redirect to that site when opened from the desktop:
Credit to Evan Mattson from the comments.
The objective of this technique is to enable redirects on the client side without confusing the user. Redirects are preferably implemented on the server side (see SVR1: Implementing automatic redirects on the server side instead of on the client side (SERVER) ), but authors do not always have control over server-side technologies.
Example from the link above:
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>The Tudors</title> <meta http-equiv="refresh" content="0;URL='http://thetudors.example.com/'" /> </head> <body> <p>This page has moved to a <a href="http://thetudors.example.com/"> theTudors.example.com</a>.</p> </body> </html>
You can define a file named as following -
It's content should be:
This works on Windows and macOS.