<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type='text/javascript'>  
    $.ajax({
      type: 'POST',
      url: 'redirect.php', 
      data: {'link' : 'feed/','screenSize' : screen.width+'x'+screen.height},
      success: function(response){
        if(response){
            location.href = response;
        }else{
            location.href = '404.html';
        }
      }
    });
</script>