.htaccess - How to 301 redirect 3 same WordPress sites with different subdomains -
so tricky one. woocommerce (at time of writing) not allow multiple currencies in 1 instance of wordpress have had triplicate site until bring out feature
so our scenario , 301 need right. old site at..
example.co.za , shop @ example.co.za/shop
we registered .com , triplicated site offer prices in us$ , south african rand (zar) targeting overseas buyers.
our set looks this...
- the original site has been moved example.com , shop has been removed domain blog sits on domain
- we set shop.example.com , duplicated site on subdomain. here removed blog , left shop. converted prices on site us$
- we set shop.example.co.za , did same above. removed blog , left shop in zar.
we need 301 redirect simple 301 redirect not redirect subdomain (why don't know)
redirect 301 /shop/fabric-products/cotton/ http://shop.example.co/fabric-products/cotton/
i had at example because of nature of situation, going little more complex rewriting subdomains , 1 another.
what thinking is there must conditions or exclusions 1 can add redirect bulk of url's shop element, write condition?
many thanks
how using redirectmatch directive:
redirectmatch 301 /shop/(.*) http://shop.example.com/$1 for more information at: http://alvinalexander.com/web/apache-redirectmatch-examples-wildcard-301
Comments
Post a Comment