这是可能的,我怎么能重写http://192.168.1.1:4950/hello ,例如, http://home.hello
http://192.168.1.1:4950/hello
http://home.hello
我知道如何使用.htaccess重写URL的一部分,但不知道如何重写整个地址,包括IP部分和端口。
.htaccess
这种重写只适用于内部/局域网使用。
使用一个RewriteCond与ServerNamevariables,然后重写规则将是一个redirect。