.htaccess redirecting my websites to just one website

Discussion in 'Apache' started by bad_bob00, Mar 27, 2008.

  1. #1
    Hi,

    I have some webhosting which I am using to host 4 websites. 3 have their own folder from the root folder, and one website is placed in the root folder.

    Recently I made a .htaccess file to redirect all html pages of one website to new php pages. This was the website placed in the root folder.

    My problem is that when I type in the 3 other URL's, I get taken to the website in the main folder. Also some websites have the same page names (such as links.html) and these get redirected to the other websites' links.php page.


    How can I prevent this happening? I only want to redirect the pages on the one website, not on all the others.


    Thanks for any help offered.
     
    bad_bob00, Mar 27, 2008 IP
  2. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #2
    Anyone able to help? :(
     
    bad_bob00, Mar 27, 2008 IP
  3. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Do you think if I moved the website from the root folder to its own seperate folder (like I have done with the other domains in my account) then it would work and I would stop getting redirected all the time?

    Thanks for any help
     
    bad_bob00, Mar 28, 2008 IP