Does anyone know a good way to this?
FIrst first get the current URL (which always contains a subdomain) then remove the subdomain and display the result?
For Example, turn this:
<a href ="http://shop.mydomain.com/subdirectory">Link</a>
into this:
<a href ="http://mydomain.com/subdirectory">Link</a>
I've been experimenting but haven't found a good solution yet that keeps the subdirectory part of the domain intact
FIrst first get the current URL (which always contains a subdomain) then remove the subdomain and display the result?
For Example, turn this:
<a href ="http://shop.mydomain.com/subdirectory">Link</a>
into this:
<a href ="http://mydomain.com/subdirectory">Link</a>
I've been experimenting but haven't found a good solution yet that keeps the subdirectory part of the domain intact