Apache Redirect not Working

Discussion in 'Apache' started by gezginrocker, Feb 9, 2012.

  1. #1
    I have 2 virtual hosts like this in the config file:

    <VirtualHost *:80>
    ServerName example1.com
    Redirect permanent / http://www.example1.com/
    </VirtualHost>
    <VirtualHost *:80>
    ServerName example2.com
    Redirect permanent / http://www.example2.com/
    </VirtualHost>

    but example2.com/www.example2.com are always redirecting to www.example1.com.

    what am I doing wrong here?

    thanks
     
    gezginrocker, Feb 9, 2012 IP
  2. BigTim3

    BigTim3 Guest

    Messages:
    266
    Likes Received:
    1
    Best Answers:
    2
    Trophy Points:
    0
    #2
    replace * with the domain name
     
    BigTim3, Feb 12, 2012 IP