Interesting htaccess situation

Discussion in 'Apache' started by TheRagingStock, Jan 24, 2012.

  1. #1
    I have an interesting htaccess situation and I cannot seem to find the answer anywhere.

    Due to a template engine I am using I have to redirect the home page to a directory:

    example.com/ -- > example.com/directory/index.php

    But it does not show in the address box as I am using a [L, NC]

    But now the situation is that google has indexed example.com/directory/ instead of example.com/ for some strange reason!!

    Is there anyway to continue to [L,NC] redirect example.com --> example.com/directory/index.php but also somehow redirect example.com/directory/index.php back to the homepage example.com/ ?

    I would really appreciate your help! I know this is a strange one...thanks!
     
    TheRagingStock, Jan 24, 2012 IP