PDA

View Full Version : Who to redirect with holding the same domainname



Guust
01-29-2004, 08:29 AM
Hi,

How is it possible to redirect www.domain.com to www.domain200.com but that the url stays www.domain.com (and not changes in www.domain200.com)?

I read something about .htaccess and rewrite engine but I just can't figure it out.

thanx

DirectAdmin Support
01-29-2004, 09:41 AM
Hello,

You'd probably want a ServerAlias instead.

If you have Admin access to the server, go to:

Admin Panel -> Admin Settings -> Custom Httpd.conf -> domain200.com.

In the top box, add the following line:

ServerAlias www.domain.com doman.comThen just be sure that it resolves to the same IP, and you should be good to go.

John

Guust
01-29-2004, 09:44 AM
Yes, I've got admin access, but this is for a user. Isn't it possible to make a htaccess?

DirectAdmin Support
01-29-2004, 10:13 AM
Well... I'm not positive, but I don't think so. You're changing the document root of the site, so I'm not sure that it would work. Ie: if we could, then you could in theory host anyone elses website on the server with your domain :) .. if there is a way through .htaccess, I don't know how...

John

S2S-Robert
01-29-2004, 11:52 AM
It's not a server alias he's looking for, the other domain is hosted on another server.

It should really be just a redirect to a new site hosted on yahoo or whatever, but with the old domain running in the address bar.

DirectAdmin Support
01-30-2004, 09:34 AM
So.. you want the contents of one server to show up, using the domain which is hosted on another one.. I believe that's called spoofing :)

I think that would require a script to connect to the 2nd server behind the scenes, get the contents, and then relay that back to the end user.. unless I'm still misunderstanding the question :)

John

Guust
02-01-2004, 05:49 AM
I redirected www.greatwaronline.com to http://home.hccnet.nl/s.r.aarten/WO1/ (please have a look to see what is happening).

But I don't want to see the ugly url http://home.hccnet.nl/s.r.aarten/WO1/ but I want to see the url www.greatwaronline.com
Please see attachment what I want as final result(it is photoshopped).
How do I do this?

Thanx

DirectAdmin Support
02-01-2004, 12:24 PM
Hello,

Unless you have admin access on home.hccnet.nl, the only way to do it would be to write a php script to go and get all the data from that website and then output from your server.. It's not really possible unless you have extensive knowledge with php scripting.

There is no feature to do what you want.

John