Hello, I would like to redirect all traffic from http://domain.com/uploads1/anything to http://up.domain.com/uploads1/anything any one can help me with the code for .htaccess ? Thanks
you dont really need to use apache mod rewrite for redirects, you can do it in most control panels (which does use mod_rewrite but its easier) or you can do html metatags, and just place an index.html,php or whatever in that directory. just google html meta tags or meta refresh
Try this: Redirect 301 /uploads1 http://up.domain.com/uploads1 PHP: or this: Options +FollowSymLinks RewriteEngine On RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{HTTP_HOST} ^(www\.)?up\.domain\.com/uploads1$ [NC] RewriteRule ^(.*)$ /uploads1/$1 [QSA,L] PHP: