how to 301 from sub.dom.com/fold/aa.html to dom.com/aa.html?

sarah.kho's Avatar, Join Date: Jul 2010
Newbie Member
Hi,

Can you please let me know whether it is possible to to use 301 redirect to redirect a page like sub.dom.com/fold/aa.html to dom.com/aa.html?

If it is possible, can you please let me know the syntax for the .htaccess file to do this?

I was not able to find anything to use for redirecting a subdomain and subfolder link to another place.

Thanks.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Under the subdomain have an .htaccess file and have the following

Code:
Redirect 301 /fold/aa.html http://www.dom.com/aa.html
sarah.kho's Avatar, Join Date: Jul 2010
Newbie Member
Thank you for the help.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by sarah.kho View Post
Thank you for the help.
The pleasure is all mine.
johnny.dacu's Avatar, Join Date: Jul 2010
Contributor
I was preparing to open a post with this question. But I found the answer so I can only thank you