domain redirection problem

Hello all,

I have a problem that some of you may be able to help me with.

I have two domain names both pointing to the same directory on my linux box(rh 7.2 apache 1.3) and if i access the aliased domain wth a directory on the end(without the slash) eg:

http://www.domain2.com/directory

it will automatically redirect to:

http://www.domain1.com/directory/

It redirects only when i leave off the trailing slash. Is this a dns issue or apache?

Here is my virtual host directive

<VirtualHost *>
ServerAdmin webmaster@domain1.com
DocumentRoot /www/docs/domain1.com
ServerName domain1.com
ServerAlias www.domain1.com domain2.com www.domain2.com
</VirtualHost>

 

 

 

 

Top