Programming

scenario: my old website is manila.rjregalado.com and my new website is nuremberg.rjregalado.com

<script language='javascript'>
    <!--
        // e.g. http://manila.rjregalado.com/solar-power/solar-panel-and-battery-requirement-calculator.html
        var oldURL = window.location.href; //get old url
        var newURL = oldURL.replace('http://manila', 'http://nuremberg'); // replace with new domain. you may use regular expressions
    // -->
</script>
We moved, Please click <a href='javascript:void();' onClick='javascript:document.location=newURL'>here</a> to continue.
   

 hope it helps