Hi I am newbie here ,I have site with http://examplemysite.com/game(no.1) and http://game.examplemysite.com (NO.2) IThese have all indexes but no.1 (folder) has lots more index ,and same content ,I want just http://game.examplemysite.com (no.2) and want to redirect all page with no.1 to no.2 ,to avoid duplicate content.,any means to do? with mod_rewrite Sorry I try search but no results. Thanks Kijakarn
Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^game\.examplemysite\.com [NC] RewriteRule ^game.+$ http://game.examplemysite.com [R=301,L] Code (markup): That will redirect all requests for http://examplemysite.com/game to http://game.examplemysite.com