...

View Full Version : How to redirect my Index.htm to another server?



Terry Cadd
07-02-2007, 10:18 PM
Iím in the process of changing internet providers. I would like to test redirecting my existing index.htm to my new website index.htm. Is this possible, and can someone show me what I need to put in a temp index.htm to make it work?
Thanks,

whizard
07-02-2007, 10:33 PM
You could use a meta refresh:



<meta http-equiv="refresh" content="5;url=http://www.mynewsite.com" />


(Put that in you head, and it will redirect users after 5 seconds)

HTH
Dan

vexen
07-02-2007, 10:35 PM
hi, i've just found this



<META http-equiv="refresh" content="1; URL=http://www.yournewpage.com/index.html">


or edit the htaccess directly

hey, i'm a little late!

Terry Cadd
07-02-2007, 10:40 PM
Thank you both for quick reply.

_Aerospace_Eng_
07-02-2007, 11:41 PM
Meta refresh is not the proper way to redirect a user as it relies on the browser to support it. Some browsers allow you to disable this feature. I recommend you use a .htaccess file if your host supports it.

Redirect /Index.htm http://www.otherserver.com
http://www.javascriptkit.com/howto/htaccess7.shtml

whizard
07-03-2007, 04:12 AM
You could also combine the meta refresh method with a page telling the user you've moved and they will be redirected, but if they aren't, "click here"

if you don't have .htaccess or don't want to mess with it

HTH
Dan



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum