Forum Moderators: phranque
www.sitevhost.com/folderGG/
this should redirect to this adress
www.anothersite.com/folder/english/
www.site.com/folderGG/
this should redirect to this adress
www.anothersite.com/folder/swedish/
Ok, one more question and how do I redirect www.sitevhost.com to a specific file. I tried for quite some time but without success. I would appreciate it a lot :)
//limetree
[edited by: jdMorgan at 2:23 pm (utc) on Nov. 5, 2007]
[edit reason] de-linked [/edit]
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{http_host} ^-sitevhost.com/folderGG/ [L]
RewriteRule ^www.sitevhost.com/folderGG/([0-9]+)$
www.anothersite.com/folder/english//$1 [r=301,R]
RewriteCond %{http_host} ^-site.com/folderGG/ [L]
RewriteRule ^site.com/folderGG/ ([0-9]+)$
www.anothersite.com/folder/swedish//$1 [r=301,R]
Best regards
//limetree
Options +FollowSymlinks
RewriteEngine on
#
RewriteCond %{HTTP_HOST} ^(www\.)?sitevhost\.com
RewriteRule ^folderGG/(.*)$ http://www.anothersite.com/folder/english/$1 [R=301,L]
#
RewriteCond %{HTTP_HOST} ^(www\.)?site\.com
RewriteRule ^folderGG/(.*)$ http://www.anothersite.com/folder/swedish/$1 [R=301,L]
[edited by: jdMorgan at 10:25 pm (utc) on Nov. 5, 2007]