View Full Version : redirection code???
bigboy413
08-03-2005, 11:18 PM
ok I am building my first web site and have lots of questions. The on that I am currently working on is a redirect. I have been useing the directory space of my isp to host my website. I dont like the url for it as you have to go to my isp and then a directory in there. I have a url that fits my site very well as far as keywords and such. What I want to do is redirect the poeple that have become familiar to the old site, as I have had it for 8 years, automatical. I know that this is possible but I dont know how it is done. Also how do the search engines react to redirects. Is it better to just rebuild the base for this site. Oh the site is for a real estate firm that I work for and am part owner. any help would be appreciated. If this is the work place to post this message on this site I am sorry and will repost it in the approperate place when I am notified of were to post it. Thanks for the help and response..
_Aerospace_Eng_
08-03-2005, 11:26 PM
Does your isp host support php? You could use javascript to redirect users but if javascript is disabled then the user will get the original page. Ultimately what will happen is google will index your old site and may not index your new site, or it might ban both sites all together because it could see you as trying to pull some type of scam, but if you can only use javascript this is what you would use.
<script type="text/javascript">
window.location='http://www.yournewsite.com';
</script>
That would go in your head tags of your old page. Search engines don't understand javascript so they will see your old page. I'll move this to the client side forum for you.
bigboy413
08-03-2005, 11:58 PM
I am not sure what php is? I will have to ask my isp about that. google is one of the search engines that I get a lot of new hits from. so getting banned from that is not a good thing. will the php think help to prevent that? I know that java is active at the old site? I am almost sure this is not the right fourm but would a mirror site be better for what I want to do... But then I would have to learn more about mirror site. I have just heard the term and know very little about that too. Once again thanks for the reply
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.