FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.
RedirectControl - Turning Off Redirects in Child Directory
Posted on 04 April 2007 09:30 PM
Question:

I have an .htaccess file in my www directory. I have a redirect directive in it, but I don't want that redirect to affect my www/images directory. As I understand it, if an .htaccess file exists, it affects all directories below it by default. Is there any way to keep redirect directives in the parent directory from affecting a subdirectory below it?

Answer:

FutureQuest offers a custom directive that you can use in a situation such as this...

RedirectControl allows you to turn Off the "parent" redirects in any subdirectory (and its subdirectories).

Using the example you've provided, placing the following in an .htaccess file in the images folder will allow you to turn off all redirect directives, specified in the www directory's .htaccess file, for the images directory (and all directories under it):

RedirectControl Off

If you need more information on working with .htaccess, please view:
"Using .htaccess on the FutureQuest® servers"

Further support is also available in the FutureQuest Community Forums:
http://www.FutureQuest.net/forums/