A website is bound to more than one domain name, by default, access to these domain names is to the homepage of the site, that is, access to different domain names when the page is the same, now need to access different domain names to display different pages.
In general, you can use the sub-station binding domain name method to achieve, access to different domain names into different sub-stations, but the view found that the customer's space does not support the child station.
So try to use the JS way to complete this request, the final code is as follows:
<script type=
"text/javascript"
>
host = window.location.host;
if
(host==
"www.a.com"
|| host==
"a.com"
)
{
window.location.href=
‘http://www.a.com/zt/px/‘
;
}
if
(host==
"www.b.com"
|| host==
"b.com"
)
{
window.location.href=
‘http://www.b.com/zt/fw/‘
;
}
</script>
Use JS to determine the current routing domain name and jump to the specified page