I’m looking for a htaccess code to redirect my url’s like this :
http://01.mydomain.com/subdir/xyz [OR]
http://www.01.mydomain.com/subdir/xyz [OR]
http://02.mydomain.com/subdir/xyz [OR]
http://www.02.mydomain.com/subdir/xyz
TO : http://www .mydomain.com/xyz
and in this case xyz is dynamic and could be any value. and subdir is constant
Assuming
subdiris constant, the following is one way: