302 Redirection Code Apache and HTML



302 redirection for apache

# vi /etc/httpd/conf/httpd.com


<VirtualHost *:80>
ServerName  nitish.com
ServerAlias www.nitish.com
redirect  /   http://www.whereyouwantredirect.com/
</VirtualHost>



302 redirection for html

<meta http-equiv="REFRESH" content="0;url=http://www.where-you-want-to-redirect-to.com"></HEAD>