Hi I have a tube site which installed in subfolder like: www.mysite.com/video/ I want to have a redirection (which is safe for SEO) of non-www and www to this path including the rest of the url which containing the video file name etc. the rules I have now are: RewriteCond %{HTTP_HOST} ^mysite.com RewriteRule (.*) http://www.mysite.com/video/$1 [R=301,L] RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/ [NC] RewriteCond %{HTTP_REFERER} !^http://mysite.com/ [NC] RewriteRule ^$ http://www.mysite.com/video$1 [R,L] Code (markup): all working well , BUT when you try to access : mysite.com/SOMETHING it redirect to http://www.mysite.comSOMETHING/ it drops the /video/ for some reason... any help?
RewriteRule ^$ http://www.mysite.com/video$1 [R,L] Aren't you missing a slash there? RewriteRule ^$ http://www.mysite.com/video/$1 [R,L]
You do mean it gets redirected to http://www.mysite.com/videoSOMETHING right? (Since that's in your rules.)
Well, you probably have some other rewrite rules then. Check your htaccess again and also ask your host your virtualhost directives in httpd.conf to see if you are doing any rewrites there.