Forum Moderators: phranque
I'm not ready to make this live, so I can't test it to see if it is right. But, I've been reading up on this since my last post...
RewriteCond %{HTTP_HOST} !^www\.example\.org/Resources/.*$ [NC]
RewriteRule (.*) http://resources.example.org/category/$1 [R=301,L]
[edited by: jdMorgan at 7:54 pm (utc) on Nov. 2, 2003]
[edit reason] Examplified & delinked URL [/edit]
What you have reads as follows:
IF {HTTP_HOST} name does Not start with "www.example.org/Resources/"
THEN redirect all requested files to the files in the http://resources.example.org/category/ subdomain and subirectory.
I suspect you don't really want the NOT operator - indicated by the "!" character, but I can't tell from your posted description.
Jim