Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to point all requests for a certain directory and all its possible subdirs to one documentroot.

So, for example, I get a lot of requests on many different subdirs here: domain.com/directory/and_all_possible_subdirs

Point to the index.php file that resides in domain.com/directory/

What to add in apache2.conf ?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I would use mod_rewrite for achieving your goal, that will be much easier. see http://www.phpriot.com/articles/search-engine-urls/5 for an example. You "misuse" the 404 condition that arises when entering a "wrong" URL an redirect the user to the wanted file/page.

share|improve this answer
    
thank you Stefan –  ICTdesk.net Apr 25 '11 at 12:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.