Amazon S3 için çalışan html yönlendirmekodu olan var mı ? Aşağıdaki kod çalışmıyor
<html>
<head></head>
<body>
<script>
function url_query( query ) {
query = query.replace(/[[]/,"[").replace(/[]]/,"]");
var expr = "[?&]"+query+"=([^&#]*)";
var regex = new RegExp( expr );
var results = regex.exec( window.location.href );
if ( results !== null ) {
return results[1];
} else {
return false;
}
}
var a = url_query('p');
if( a ) {
window.location.href = "http://www.google.com/?p=" + a;
}
</script>
</body>
</html>