开发者

Subfolders in subdomains

I have a site: myname.host.com I have a domain: www.myname.nl

I have some subfolders for different subsections but also completely unrelated websites.

How do I make sure in the DNS setup that:

  • blog.myname.nl gets me to myname.host.com/blog/
  • blog.myname.nl/archive gets me to myname.host.com/blog/archive
  • blog.myname.nl/randomfolder gets me to myname.host.com/blog/ra开发者_运维问答ndomfolder

Catch my drift?

I mean, getting www.myname.nl/blog/archive to work is easy. Cname + A record with IP do the trick. But how about the sub-domain + subfolder structure?


Paths are not part of DNS. I don't believe there is any way to make them so. You'll need to do that in your server configuration (for example, Apache rewriting).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜