Redirect all pages from one domain to the main site of a new one.

Discussion in 'Apache' started by pesnax, Aug 25, 2010.

  1. #1
    I need to redirect all pages from one domain to the main page of a new domain. The new domain should be accessed through SSL (https).
     
    pesnax, Aug 25, 2010 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    RewriteEngine On
    RewriteRule . https://www.thedomain.com/ [R=301]
    
    Code (markup):
    Should send everything to the new domain.
     
    tolra, Aug 25, 2010 IP