Heres the current .htaccess rule we have on our staging server and it works but it breaks the country sites.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^staging-test.asmarterplanet.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.staging-test.asmarterplanet.com [NC]
RewriteRule ^(.*)$ http://www.ibm.com/blogs/think$1 [L,R=301,NC]
Need to figure out a way to ignore the country sites within a multisite WordPress environment. Only the www.staging-test.asmarterplanet.com directory needs to redirect to the new blogs/think site
These are the sites we need to ignore
/es/
/ch/
/se/
/no/
/nl/
/jp/
/dk/
This directory is the only site we need to accept the redirect âstaging-test.asmarterplanet.com â
Try:
The new Rewrite condition checks that the first part of the path does not match any of the specified country paths before allowing the rule.