URL Redirect
To redirect a page or domain to another address, a URL redirect can made using a simple script. In the examples below, the destination URL of the Redirect is http://www.nomedominiofittizio.abc.
Server-side redirect in asp
It is possible to make a redirect in the asp language using the appropriate Response.redirect:<% Response.redirect("http://www.nomedominio.it") %>
Server-side redirection in php
It is possible to make a redirect in php using the header function, as shown below:<?php header("Location: http://www.nomedominiofittizio.abc"); ?>
HTML Redirect
It is also possible to make a redirect simply by using HTML meta tags, specifically the Refresh meta tag in the header of the page to be redirected:<html> <head> <meta http-equiv="refresh" content="0; url=http://www.nomedominio.it"> </head> <body> ......... </body> </html>
Redirect with JavaScript
You can also use JavaScript to achieve the same result:<script language="javascript"> window.location.replace = 'http://www.nomedominio.it'; </script>