Htaccess : how to redirect all files in a folder to non subdomain if accessed via a subdomain?

In the folder's . Htaccess: RewriteCond %{HTTP_HOST} sub.domain. Com RewriteRule (.*) domain.com/folder/myfiles/$1 In the root .

Htaccess or server config: RewriteCond %{HTTP_HOST} sub.domain. Com RewriteRule ^/?(folder/myfiles(/. *)?)$ http://domain.com/$1.

That worked perfectly for a chosen subdomain! I was able to edit it (the folder htaccess version) so it works for accessing from any subdomain with RewriteCond %{HTTP_HOST} (.*).domain. Com thanks so much!

– CommentLuv Nov 10 '10 at 15:15.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions