简单的.htaccess子域重写

编程入门 行业动态 更新时间:2024-10-28 17:26:36
本文介绍了简单的.htaccess子域重写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我知道有很多关于这个......但现在我觉得自己像被迎面而来的车头灯愣了鹿的问题就在这里......我只是不知道从哪里开始以及选择哪个选项。

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子域重写

本文发布于:2023-10-31 17:33:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546787.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重写   简单   htaccess

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!