301 Redirect PHP database site on Windows Server

Discussion in 'PHP' started by Simonh, May 5, 2008.

  1. #1
    I recently merged two websites and everything was ok generally. I’m left with one nagging problem:

    I have two sites A.com and B.com. B.com is now part of A.com as www.A.com/B/

    Using IIS 6 I can redirect B.com in its entirety so that for example what was formerly B.com/ xyz.html is now A.com/B/xyz.html.

    The problem I am having is with the B.com home page. When I did the above redirect B.com/ goes to A.com/B/ and B.com/index.html goes to A.com/B/index.html

    This seems to have created two home pages for B.com

    What I think I need is a way to redirect the old B.com/ to A.com/B/index.html or redirect B.com/index.html to A.com/B/

    Note: The index.html does not actually exist as a physical file.

    Does anyone know how this could be done using a single redirect?
     
    Simonh, May 5, 2008 IP