我知道有很多关于这个......但现在我觉得自己像被迎面而来的车头灯愣了鹿的问题就在这里......我只是不知道从哪里开始以及选择哪个选项。
I know there is a lot of questions on here about this... but right now I feel like a deer stunned by oncoming headlights... I just don't know where to start and which option to choose.
我的要求很简单。
用户进入 application.domain 或的 www.application.domain 并且这些文件的真实位置的 www.domain/application
User goes to application.domain or www.application.domain and the real location of these files is www.domain/application
显然,这需要使用通配符,这样任何域(即使它不存在)触发重写来完成。
我希望这是有道理的人
编辑: 我还要提到我已经添加了通配符的记录在我的交友DNS条目* .domain
I should also mention I have added the wildcard A record to my DNS entries in Cpanel *.domain
感谢
添
推荐答案我贴这个问题到serverfault和icyrock解决它。柜面其他人是否知道给出的答案就在这里:
I posted this question onto serverfault and icyrock solved it. Incase anyone else is wondering the answer given is here:
serverfault/questions/203780/troubleshooting-a-htaccess-wildcard-subdomain-rewrite/203804#203804
添
更多推荐
简单的.htaccess子域重写
发布评论