TRY THIS BELOW CODE

---------------------------------------------------------------

<form name="Downloadphpscript and Justdialclone">
<center>
<font face="Arial"><b>You will be redirected to the script in<br><br>
<form>
<input type="text" size="3" name="redirect2">
</form>
seconds</b></font>
</center>

<script>
<!--

/*
Count down then redirect script
By JavaScript Kit (yourwebsitename)
Over 400+ free scripts here!
*/

//change below target URL to your own
var targetURL="yourwebsitename"
//change the second to start counting down from
var countdownfrom=10


var currentsecond=document.redirect.redirect2.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.redirect2.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
}

countredirect()
//-->
</script>

i have a problem: i want redirect everything page in url: ex: http://dracotech.biz to http://www.dracotech.biz . want to add www. in everything request from user.. maybe with mode rewrite in apache but i didn't find way how to do it..

*if* your host supports redirects from .htaccess files *and* if you're on a Linux based machine running apache, the following lines in an .htaccess file should do the trick:

Options +FollowSymLinks

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(dracotech\.biz)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]

I hope this helps.

-Ray

This article has been dead for over six months. Start a new discussion instead.