PDA

View Full Version : redirect a to website



ronp
04-08-2004, 03:55 AM
My company has a domainaddress but we have not activated our own website. We want to redirect to a subwebsite by url. Our webhosting provider asks for a redirection script. Does anybodyknow how I can make a redirection script?

Chris
04-08-2004, 08:48 AM
If a site is not yet done there is no reason to do this kind of thing. You should never promote a website until it is done.

Redirects can be quite simple, most web hosting control panels offer tools to do it, I'd be worried about a web host that doesn't and that doesn't know how to do it.


Putting this in your .htaccess file will allow you to do a redirect:

Redirect 301 /local/file/path http://www.newsite.com/path/

ronp
04-08-2004, 11:54 PM
Thanks Chris for your advice. Its not that the provider does not know how to do it. Its policy in Holland that the company is responsable for their own links and sites. My company has a subsite on a website. We just had a merge so we need time to think about some new goals on the website. Till then we want that visitor do not find a blank website so thats why I want to redirect to our subsite. So my provider said..its ok as long as you send us the redirection file we will put it on the site. But I had not idea how to make a redirection script thats why I aksed it in here. I will try to do it the way you told me.