Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2001
    Location
    rules.php
    Posts
    272

    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 [email protected]
    DocumentRoot /www/docs/domain1.com
    ServerName domain1.com
    ServerAlias www.domain1.com domain2.com www.domain2.com
    </VirtualHost>
    ...::: HOST APPROVAL :::...
    Web Hosting Directory
    http://www.hostapproval.com/
    http://www.hostapproval.com/hostadmin/add_your_host.php

  2. #2
    Join Date
    Mar 2002
    Posts
    1,003
    .
    Last edited by Shyne; 09-18-2002 at 03:17 PM.

  3. #3
    Join Date
    Jun 2001
    Location
    rules.php
    Posts
    272
    ???

    The redirection is the problem, i do not know what does it or how it works.
    ...::: HOST APPROVAL :::...
    Web Hosting Directory
    http://www.hostapproval.com/
    http://www.hostapproval.com/hostadmin/add_your_host.php

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •