ドメインの仕組み
https://creativecommons.org/choose/zero/
https://www.apache.org/licenses/LICENSE-2.0
リダイレクトについて
Urlリダイレクト
https://datatracker.ietf.org/doc/html/rfc7538
1:
HTTP/1.1 308 Permanent Redirect
Content-Type: text/html; charset=UTF-8
Location: http://example.com/new
Content-Length: 356
<!DOCTYPE HTML>
<html>
<head>
<title>Permanent Redirect</title>
<meta http-equiv="refresh"
content="0;
url=http://example.com/new">
</head>
<body>
<p>
The document has been moved to
<a href="http://example.com/new">
http://example.com/new</a>.
</p>
</body>
</html>2:https://datatracker.ietf.org/doc/html/rfc7238
Server response:
HTTP/1.1 308 Permanent Redirect
Content-Type: text/html; charset=UTF-8
Location: http://example.com/new
Content-Length: 454
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Permanent Redirect</title>
<meta http-equiv="refresh"content="0; url=http://example.com/new"></head>
<body>
<p> The document has been moved to
<a href="http://example.com/new">http://example.com/new</a>.
</p>
</body>
</html>3:
javascript:function(){
const currentURL = window.location.href;
const newURL =
currentURL.replace(‘https://xxx’,’https:/new’);
window.loocation.href = newURL;})();4:
const h = window.location.href;
if(h.startsWith("https://xxx.example.co.jp/confluence/page s/viewpage.action?pageId="))
{ window.location.href = h.replace(‘https://xxx’,‘https://new');}