Jai*_*ain 1 html redirect jekyll
我有一个 jekyll 网站托管在 GitHub 页面上。
我想创建指向其他地方的短链接。例如example.com/l可以重定向到linkedin.com/example.
有没有一种方法可以在静态托管的网站上实现此目的,而不会干扰我的域名注册商?
小智 6
您可以使用<meta>添加到<head>页面部分的标签。
<meta http-equiv="Refresh" content="0; url='https://your.redirect.here'" />
Run Code Online (Sandbox Code Playgroud)
这将在页面加载时重定向浏览器。