lucy24

msg:4516573 | 10:49 pm on Nov 6, 2012 (gmt 0) |
Well, let's see what you've tried so far. Include details of what "doesn't work" means.
|
g1smd

msg:4516593 | 12:00 am on Nov 7, 2012 (gmt 0) |
As this is a topic that is asked at least once every week, there's hundreds of prior threads with example code. The last was just days ago. You summise correctly that you need a redirect and a rewrite for the whole job. Both must be coded using RewriteRules. The devil is in the details.
|
vincevincevince

msg:4516618 | 3:09 am on Nov 7, 2012 (gmt 0) |
The key is to end the rewrite rule with the appropriate redirection, e.g. [R=301,L] in this case
|
lucy24

msg:4516692 | 6:57 am on Nov 7, 2012 (gmt 0) |
There will be two RewriteRules. One is a redirect. One is a rewrite. The second one is already in place, assuming that "now I use htaccess" means "now I rewrite requests for A to serve content from B".
|
|