亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Replace www in URL with wildcard subdomain
P粉336536706
P粉336536706 2024-04-04 19:28:30
0
1
631

Is there any way to

www.domain.com/new-mexico/albuquerque/businessname-513526.html

is replaced with:

businessname.domain.com/new-mexico/albuquerque/businessname-513526.html

This means "www" will be replaced by the business name. This should be simple but I don't know how to implement it.

P粉336536706
P粉336536706

reply all(1)
P粉713846879

Sounds like you may need to use str_replace

$old_domain = "www.domain.com/new-mexico/albuquerque/businessname-513526.html";
$new_domain = str_replace("www.", "businessname.", $old_domain); //我選擇在www之前加上點(diǎn)號(hào),以防URL中還有另一個(gè)www
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template