Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 12, 2008, 09:10:05 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Multiple domains + redirection  (Read 208 times)
shacall
Newbie
*
Offline Offline

Posts: 2


« on: February 13, 2008, 01:41:02 PM »

Hi,
If someone can point me in the right direction, I can research and investigate more into my question.  I have 2 domains, mydomain1.com and mydomain2.com.  Currently, my dedicated server is hosting mydomain2.com.  I'd like mydomain1.com to be hosted on the same server (VirtualHost?), with one caveat.

I want all traffic going to mydomain1.com, to be redirected to mydomain2.com (with SSL).  If the end user types in http://mydomain1.com/subdir2, it should go to https://mydomain2.com/subdir2

Make sense?  I'm guessing I need to use VirtualHosts within Apache, as well as a redirect command.  Any help would be greatly appreciated.

Thanks,
Gary
Logged
shacall
Newbie
*
Offline Offline

Posts: 2


« Reply #1 on: February 13, 2008, 02:33:39 PM »

Disregard my post.  I figured it out, using NameVirtualHost along with a rewrite rule.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM