There are multiple ways in which to redirect to another url from the server to the client. .htaccess Redirect
1 2 |
# Permanent redirect to a new site Redirect 301 / http://example.com/ |
PHP Redirect
1 2 3 |
<?php header( 'Location: http://example.com' ) ; ?> |
HTML Redirect
1 2 3 4 5 |
<html> <head> <meta http-equiv="Refresh" content="5; url=http://example.com/"> </head> </html> |
Javascript Redirect
1 2 3 |
<script type="text/javascript"> <!-- window.location = "http://www.google.com/" //--> </script> |