keys88
01-03-2011, 03:41 PM
This is a basic question about writing .htaccess Redirect.
I want to redirect a call to a directory to a sub-directory within that directory.
In my root directory’s .htaccess file, this works:
Redirect 301 /index.html /foldername/
But I can’t get this to work in any other directory. I’ve tried many variations, such as --
Redirect 301 /foldername/index.html /foldername/subfolder/
Redirect 301 index.html /subfolder/
-- without result, so I’m wondering if I have some basic confusion about how this works.
Thank you.
I want to redirect a call to a directory to a sub-directory within that directory.
In my root directory’s .htaccess file, this works:
Redirect 301 /index.html /foldername/
But I can’t get this to work in any other directory. I’ve tried many variations, such as --
Redirect 301 /foldername/index.html /foldername/subfolder/
Redirect 301 index.html /subfolder/
-- without result, so I’m wondering if I have some basic confusion about how this works.
Thank you.