आप HTML नोस्क्रिप्ट तत्व में अनुप्रेषित को संयोजित करना चाहिए प्रदर्शित करते हैं। मुझे यह JavaScript redirection जनरेटर मिला।
<!-- Pleace this snippet right after opening the head tag to make it work properly -->
<!-- This code is licensed under GNU GPL v3 -->
<!-- You are allowed to freely copy, distribute and use this code, but removing author credit is strictly prohibited -->
<!-- Generated by http://insider.zone/tools/client-side-url-redirect-generator/ -->
<!-- REDIRECTING STARTS -->
<link rel="canonical" href="https://yourdomain.com/"/>
<noscript>
<meta http-equiv="refresh" content="0;URL=https://yourdomain.com/">
</noscript>
<!--[if lt IE 9]><script type="text/javascript">var IE_fix=true;</script><![endif]-->
<script type="text/javascript">
var url = "https://yourdomain.com/";
if(typeof IE_fix != "undefined") // IE8 and lower fix to pass the http referer
{
document.write("redirecting..."); // Don't remove this line or appendChild() will fail because it is called before document.onload to make the redirect as fast as possible. Nobody will see this text, it is only a tech fix.
var referLink = document.createElement("a");
referLink.href = url;
document.body.appendChild(referLink);
referLink.click();
}
else { window.location.replace(url); } // All other browsers
</script>
<!-- Credit goes to http://insider.zone/ -->
<!-- REDIRECTING ENDS -->
स्रोत
2013-04-25 13:01:15
आप 'उपयोग करने के लिए ' –
@BrianDriscoll की आवश्यकता होगी: यहाँ अपने नमूना कोड है। आपने इसे जवाब क्यों नहीं लिखा? यह सबसे ऊपर है! – gdoron
यदि जावास्क्रिप्ट अक्षम है, तो आप अपनी स्क्रिप्ट को चलाने के लिए वास्तव में कैसे प्राप्त करेंगे? –