1. Home
  2. Docs
  3. Redirect Controller
  4. FAQ’s
  5. Redirect multiple sites

Redirect multiple sites

Question:-
I have a WooCommerce Multisite located at socialeyeslashes.com with 4 stores, located at .com, .com/ca/, .com/au/, and .com/uk/. HTTPS is forced.

I need help setting up my site. I will be using WP Rocket for Caching paired with CloudFlare. Right now the WP Rocket Plugin is installed but not activated. My WP Rocket username is: rich@nobullco.com and the password is: VbXBe3%A^U06

I would like the following redirects:
1. Persons from Canada are redirected to https://socialeyeslashes.com/ca/
2. Persons from Australia and New Zealand are redirected to https://socialeyeslashes.com/au/
3. Persons from the United Kingdom are redirected to https://socialeyeslashes.com/uk/
4. The rest of the world (United States, India, China, Europe etc.) goes to https://socialeyeslashes.com/

Each store has a unique API which our shipping software for our warehouses in Canada, Australia and UK use.

The store’s API Endpoints are:
mydomain.com/wc-api/
mydomain.com/ca/wc-api
mydomain.com/au/wc-api
mydomain.com/uk/wc-api

They **cannot** have any traffic redirected or geoiped. They must be whitelisted. I would also like to whitelist all /wp-admin pages (for /ca/, /au/, /uk/ and .com) and if an admin is signed in.

Also, if possible, to whitelist these IP addresses:
134.213.55.190
134.213.138.99
134.213.138.101
134.213.138.102
162.13.161.18
162.13.161.17
95.138.179.101
95.138.179.84
95.138.179.88
95.138.179.96
95.138.179.32
95.138.179.216
95.138.179.227

answer:-
Follow this link http://docs.megaedzee.com/docs/redirect-controller/uses-of-plugin/standard-use-case/#redirect-by-country

Was this article helpful to you? Yes No

How can we help?