Hi,
This is my first post. So I hope I do everything right (despite the rant on the bottom). ;)
I need some help for a RewriteCond in htaccess. I have this up and working:
RewriteCond %{HTTP_HOST} ^(www\.)?example-A\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/subdirectory/$1 [L,R=301]
How can I expand the first line to accept subdirectories? I'd like www.domainA.ch/directory984/ -> www.domainb.ch/directory673/ No matter what I try it just routes back to the root (www.domainB.ch). I cannot make it recognize the subdirectory. Any help is very appreciated.
(Off Topic: How do I post http:// without getting it converted to a URL? The code above ist not correct like this on the second line... The "CODE" tag does not work, neither does "QUOTE" or "disable Code/Smilies". And why has the "Code" tag such a small fontsize? Very hard to read.. Isn't it code that gets posted all the time? :) Sorry for the rant on the first post. :)) [edited by: jdMorgan at 1:41 pm (utc) on Jun 16, 2010]
[edit reason] Please use example.com only [/edit]