2007/2/27, Jon Bennett <[EMAIL PROTECTED]>:
> RewriteCond %{HTTP_REFERER} ^http://(www.)?blogdomain.com [NC]
> RewriteRule (.*) http://www.domain.com/blog/$1 [R=301,L]
>
> which worked, except we had no CSS or images, anyone got any ideas how
> I can get them working?
I can't believe I missed that the first time, but I think you should
check %{HTTP_HOST} instead of %{HTTP_REFERER}.
RewriteCond %{HTTP_HOST} ^(www.)?blogdomain.com$ [NC]
RewriteRule (.*) http://www.domain.com/blog/$1 [R=301,L]
Martin
--
Martin Schapendonk, [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---