ted_chou12 Posted December 2, 2008 Share Posted December 2, 2008 Hello. I wish to redirect a subdirectory to a subdomain: http://domain.com/sub/ => http://sub.domain.com/ which includes all the files in the subdirectory, eg. http://domain.com/sub/index.html or http://domain.com/sub/page.html Thanks, Ted. Quote Link to comment Share on other sites More sharing options...
corbin Posted March 3, 2009 Share Posted March 3, 2009 Redirect or rewrite? To redirect: RewriteRule ^([^/]+)/?(.*) http://$1.somesite.com/$2 [R=301,L] If you want to do it without the user knowing, you will either need to use Alias, or mod_proxy. I would suggest Alias. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.