Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<script type="text/javascript">// <![CDATA[
var doc = document;
var head = doc.getElementsByTagName("head")[0];
var meta = doc.createElement("meta");
meta.setAttribute("name","robots");
meta.setAttribute("content","nofollow,noindex,noarchive");
head.appendChild(meta);
var moveToUrl = "ここに移動先のURLを入れてください";
document.querySelector("link[rel=canonical]").setAttribute("href", moveToUrl);
// ]]></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.