开发者

Subfolders in subdomains

开发者 https://www.devze.com 2023-01-14 19:53 出处:网络
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.

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

精彩评论

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