Forum Moderators: phranque
RewriteRule ^[^/]*/admin(.+) admin$1 [QSA]
RewriteRule ^[^/]*/blog(.+) blog$1 [QSA]
RewriteRule ^[^/]*/contact(.+) contact$1 [QSA]
RewriteRule ^[^/]*/(admin|blog|contact)(.+) $1$2 [QSA]
I'm not talking about domain names or query strings.
example1.com/blog/
example2.com/blog/
example3.com/blog/
...all rewrite to...
blog/
<snip>
The [^/] rule is to take the example1.com/ directory in to account so we can rewrite after.
RewriteRule ^[^/]*/(admin|blog|contact) http://example.com/blog/ blog/ [^/]*/ part appears to be redundant. http://example.com/foobar/blog/ http://example.com/quux/foo/bar/blog/ http://example.com/unreliable/junk/blog/