Forum Moderators: phranque
(/en)?(/the rest of the stuff)
the first piece will be captured separately if present. And then you simply go to
www.newdomain$1/yyyy/mm$2
GET /something HTTP/1.1" request sent by the browser or bot. In order for the rule to work, a browser or bot must have made a request for a URL with /de/ in it (or made a request without /de/ in it). !^/(de|de/.*)$
The original pattern was correct and functionally equivalent.
Is rewritecond position correct, related to rewrite rule ?
The only problem is that when I surf:
www.oldsite.com/de --> goes to www.newsite.com (wrong)
RewriteCond %{THE_REQUEST} !^[A-Z]+\ /de/