简体   繁体   English

如何将域从 example.com 更改为 example.com/homepage/

[英]How to change the domain from example.com to example.com/homepage/

I have purchased a domain name from Namecheap and it is as follows: example.com, and I use each of the following services: 1 - My hosting is from Digital Ocean.我从 Namecheap 购买了一个域名,如下所示:example.com,我使用以下各项服务: 1 - 我的主机来自 Digital Ocean。 2 - I use Cloudflare as a CDN. 2 - 我使用 Cloudflare 作为 CDN。 Now where and how do I modify the domain to be as follows:example.com/homepage/ in the previous services.thankyou现在在哪里以及如何修改域如下:example.com/homepage/ 之前的services.thankyou

This is your domain: example.com .这是您的域: example.com This is just a path on your web server: /homepage/ .这只是您 web 服务器上的一个路径: /homepage/ The /homepage/ path is totally handled by the webserver. /homepage/路径完全由网络服务器处理。 Your domain name service (DNS) does not handle that path at all.您的域名服务 (DNS) 根本不处理该路径。

You would need to configure your webserver on Digital Ocean to actually have a web page hosted at the /homepage/ path.您需要在 Digital Ocean 上配置您的网络服务器,以便在/homepage/路径中实际托管一个 web 页面。 Then you could configure your web server to redirect all requests to the root path / to /homepage/ .然后你可以配置你的 web 服务器将所有请求重定向到根路径//homepage/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未找到 Mailgun 域:example.com - Mailgun domain not found: example.com Django + gunicorn + nginx网站在使用example.com:8000时运行完美,但在使用example.com时却运行不完美 - Django+gunicorn+nginx site runs perfect when using example.com:8000 but not when using example.com 如何在Digitalocean上创建Blog.domainname.com,而不是在domainname.com上托管博客 - How to create a blog.domainname.com on digitalocean instead of the blog being hosted on the domainname.com 如何更改LetsEncrypt certbot域? - How to change LetsEncrypt certbot domain? 尝试从特定IP访问appengine.google.com的403禁止错误 - 403 Forbidden error trying to access to appengine.google.com from a specific IP DigitalOcean-如何将website.net流量路由到website.com(一页除外)? - DigitalOcean - How to route website.net traffic to website.com except for one page? 如何在Dokku中更改域主机名的默认应用程序 - How to change Default App in Dokku for Domain Host Name 如何将 Rails 项目从数字海洋水滴转移到域 - How to transfer a Rails project from a digital ocean droplet to a domain 我在哪里可以看到我在生产中的 Laravel 配置:示例数据库连接,邮件服务器 - Where can I see my Laravel configuration in production: Example db connection, mail server 如何将域映射到服务器? - How to map a domain to server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM