PaliTree
asked on
.htaccess Redirect Question
Greetings
I have a folder on my web site - let's call it /docs.
I need to be able to redirect requests "permanently" for "http://mydomain.com/docs/" to "http://mydomain.com/docs/special-page.html". But I don't want it to effect requests for other pages in that folder e.g. "http://mydomain.com/docs/page1.html" etc
I tried:
redirect 301 /docs/ http://mydomain.com/docs/special-page.html
But that DID seem to mess up access to the other pages!
I have a folder on my web site - let's call it /docs.
I need to be able to redirect requests "permanently" for "http://mydomain.com/docs/" to "http://mydomain.com/docs/special-page.html". But I don't want it to effect requests for other pages in that folder e.g. "http://mydomain.com/docs/page1.html" etc
I tried:
redirect 301 /docs/ http://mydomain.com/docs/special-page.html
But that DID seem to mess up access to the other pages!
ASKER
Anuroopsundd - that's a link, not an answer. Note: I am NOT redirecting to another folder. I am redirecting requests for the folder (/docs/) to a file within that folder.
To repeat: redirect 301 /docs/ http://mydomain.com/docs/special-page.html does not seem to work.
To repeat: redirect 301 /docs/ http://mydomain.com/docs/special-page.html does not seem to work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many thanks arober11! I've used the "DirectoryIndex" solution.
http://www.besthostratings.com/articles/htaccess-redirects.html