Apache Virtual Host


#1

Hello people,

I just want redirect a url to another, for example:
http://www2.domain.com.br to http://www.domain.com.br/forum

Just it.

In the panel.dreamhost.com, I can’t.
Somebody can help me?

Regards,

Junix


#2

Do you want to redirect your entire domain to another URL or do you want just one particular page to redirect?

The former is easily done with a Redirected Domain via the Dreamhost control panel under “Domains>Manage Domains”. Click the “Edit” button in the Web Hosting column to edit the hosting for your domain and make it a redirected domain.

You can otherwise use php to redirect users from one page to another:

<?php header( 'Location: http://www.domain.com.br/forum' ) ; ?>Free unique IP and $67 off with code [color=#CC0000]LMIP67[/color] or use [color=#CC0000]LM97[/color] for $97 off. Click for other Dreamhost coupons / promo codes


#3

Thank you Lensman, but, I don’t want redirect all of my domain, just ‘www2’, and the second alternative is impossible, because when I try www2.domain.com.br, I give an error:
Site Temporarily Unavailable
We apologize for the inconvenience. Please contact the webmaster/ tech support immediately to have them rectify this.

error id: “bad_httpd_conf”


#4

[quote]he second alternative is impossible, because when I try www2.domain.com.br, I give an error: Site Temporarily Unavailable
We apologize for the inconvenience. Please contact the webmaster/ tech support immediately to have them rectify this. … error id: “bad_httpd_conf”[/quote]
http://wiki.dreamhost.com/Bad_httpd_conf might provide you some useful information/help on dealing with that problem.

–rlparker


#5

There’s nothing particularly special about the “ww2.domain.com.br” subdomain (though most people do consider it “special”). In order to have it redirected, I’m pretty sure that you have to add it explicitly as a subdomain. So add hosting for ww2.domain.com.br and make sure to add it as a redirected domain.

Alternatively, you can add it as a fully hosted subdomain and then use the php redirect.

Let us know how this goes!

Free unique IP and $67 off with code [color=#CC0000]LMIP67[/color] or use [color=#CC0000]LM97[/color] for $97 off. Click for other Dreamhost coupons / promo codes


#6

It works now.
Thank you for all!

Regards,

Junix