Monday, September 24, 2012

Permanet Redirecting Page

1. well this code will automatic redirect your page to another website using .httacess

Alright , to do this , you need to add .htaccess to your public_html folder ,and the code is .

RewriteEngine On
RewriteCond %{HTTP_HOST} !^http://example.com\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
 
This will redirect any requests to http://example.com to http://www.example.com.

2. Another way to redirect page using Refresh Redirecting Tag:

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.google.co.il">

3. JAVA SCRIPT METHOD 

<script type="text/javascript">
function delayedRedirect(){
    window.location = "https://www.site.com/"
}
</script>
</head>
<body onLoad="setTimeout('delayedRedirect()', 10000)">  ==> This means 10 Seconds


~~> e-yhamtech 

No comments:

Post a Comment