> right after the "RewriteEngine On" line would achieve what you want:
>
> # Redirect non-mydomain.co.uk domains
> RewriteCond %{HTTP_HOST} .
> RewriteCond %{HTTP_HOST} !^mydomain\.co\.uk
> RewriteRule (.*) http://mydomain.co.uk/$1 [R=301,L]
>
> After this you should have the default Rails/Radiant content and
> everything
> will get picked up correctly as the above code is only processed when
> the
> domain does not match your wanted domain and halts processing after the
> redirect when it doesn't.
>
> Best Regards,
> Kevin Ansfield
Thanks for replying, Kevin.
Your example is virtually identical to how I normally re-write URL's.
However, I may have misinterpreted what the original poster was
attempting, allow me to elaborate...
When a Rails app is installed on a MT grid server the html/public_html
folder is removed from that of the domain and replaced with a sym link
to the app. Which is why I thought the poster may have been trying to
place the re-write rule before the (quoted) 'automatically generated'
Media Temple code. Because, obviously, dropping an .htaccess complete
with re-write rules into the domain folder wont do a thing.
Personally, I have a few other approaches to try before I resort to tech
support, but if anyone has suggestions, I'd welcome them.
Thanks, Suzanne.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant