View Single Post
Old 01-17-2010, 05:51 AM   PM User | #7
vorl
Regular Coder

 
Join Date: Feb 2005
Posts: 190
Thanks: 25
Thanked 0 Times in 0 Posts
vorl is an unknown quantity at this point
Solved! For anyone interested, I missed a line of code (RewriteBase /) out.

Heres what I eventually used:

Code:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^script\.example\.com
RewriteRule .* - [L]

RewriteCond %{HTTP_HOST} !^(.*)\.example\.com/uk/$ [NC]
RewriteRule ^(.*)$ http://www.example.com/uk/$1 [R=301,L]
Thanks!
vorl is offline   Reply With Quote