WordPress subdomain or subpath
-
Hello,
I am running a single eCommerce WordPress site with the domain name?example https://www.website.com. We have also added subdomains on our server, such as bahrain.website.com and saudi.website.com.
Our website is accessible in both Saudi Arabia and Bahrain.
We have installed the GeoIP addon, which allows us to detect the user’s location.
We would like to change our site’s domain name based on the user’s location. For instance, if a user visits from Bahrain, we want to dynamically change our domain name to bahrain.website.com. Similarly, if a user visits from Saudi Arabia, we want to change our domain name to saudi.website.com.
Is it possible to achieve this in WordPress? Or Is there anyway to do same concept with subpath like website.com/bh and website.com/sa
Kindly advise us on the best approach to implement this functionality.
- The topic ‘WordPress subdomain or subpath’ is closed to new replies.