Web Hosting Talk







View Full Version : Redirect with htaccess


zodehala
06-08-2007, 09:12 AM
how can i do redirection using htaccess (for examle after 30sec. it will open www.webhostingtalk.com )

ISPserver
06-08-2007, 10:53 AM
I do not know how you can do 30 sec wait in .htaccess
But for redirect you can use:

redirect / www.webhostingtalk.com

lslars31
06-08-2007, 01:18 PM
I actually think you can't do that with .htaccess. You are going to have to use javascript.

Found this for you: http://www.pa.msu.edu/services/computing/faq/auto-redirect.html

rlhosthng
06-08-2007, 03:30 PM
Im not sure you can do it with .htaccess but the redirect script is

Redirect permanent / http://www.yournewsite.com

Or you can use this code in html pages to redirect

<meta
http-equiv="refresh" content="30; url=your new address.html">

hsncool
06-09-2007, 08:33 AM
yeah, theres no such thing as a "timed" redirect in apache, so if i were you, id use the meta tag as rlhosting said.