Redirecting sub-domains to the main home page
-
Hi, I have several sub-domains that I need to redirect to the main home page of my site. Examples:
– kate.powerofaloe.com should open powerofaloe.com.
– john.powerofaloe.com should open powerofaloe.com.
I need to do this so that JavaScript on the main home page can detect ‘john’ or ‘kate’ in the URL of the sub-domain and customize the main page for either John or Kate. This way I will have one site that will look different for different owners of my sub-domains.I created sub-domains with my hosting provider and pointed them to a separate sub-directories under public_html. I do not know how to redirect them to the main page. Forwarding them at the hosting provider level won’t work because it will be forwarded before the page opens and I won’t be able to read the sub-domain with JavaScript. Can you help me with this? Thank you!
https://www.ads-software.com/plugins/cleverwise-redirect-it/
- The topic ‘Redirecting sub-domains to the main home page’ is closed to new replies.