Help - Search - Members - Calendar
Full Version: Domain/url forwarding (domain1 to domain2)?
The Planet Forums > Control Panels > Plesk
AC Design
Hi -

I would like to figure out how to set my server to forward from one URL to another.... i.e. someone types www.Domain1.com -- they are forwarded to www.Domain2.com ... it should change completely from the first domain to the second (no need to have the site itself stay as the 1st domain). I'm hoping this can be done without wasting one of my 200 domains for my Plesk license. I also have Webmin installed on the server (the server is an AMD package 1 with Plesk). Right now the 1st domain is still hosted on my old server, thus it is still forwarding to the 2nd domain fine, but when I move it to this server, I'd like to know how to set it up to do the same thing (on the other server its just set as another virtual site, with a javascript refresh to send it to the other url). I'm sure there's a better way than that though - I just don't know what it is hehe icon_biggrin.gif

Thanks!

P.S. I just moved my site to rackshack the other day, so it may not have propigated for you yet).
meballard
I can't check if this would work with Plesk, but if it doesn't look at the Apache configuration file as to whether a domain is setup (so that no other related services are enabled on it), then you could simply add a VirtualHost directive in httpd.conf and add that domain, and point it to a directory with a file that can do the forwarding, and for doing the forwarding, you can also use the meta refresh method in the head section of a html file, or my personal favorite, a index.php file that has this:
http://newsite/"); ?>
which uses a http header for the redirect.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.