Archive for November 23rd, 2009
Redirect code from https to http?
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-27772211-1']); _gaq.push(['_trackPageview']);
(function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
Your can redirect all https (Secure) URL to http by using following code in .htaccess file.
RewriteEngine on
Options +FollowSymLinks
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [L,R]