将页面保存在自己的文件夹中?

发布于 2024-09-27 06:41:59 字数 145 浏览 0 评论 0原文

我想知道是否可以将我的所有页面保存在网站上的一个文件夹中。并只保留 public_html 中的index.html 页面?

我知道 URL 会像 example.com/pages/about.html 但他们有一种改变它的方法吗?

I'm wondering if it would be okay to keep all of my pages in one folder on a site. and leave only the index.html page in public_html?

I know the URL will be like example.com/pages/about.html but theirs a way to change that right?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄与心 2024-10-04 06:41:59

这很好。没有理由说它会成为一个问题。您的 URL example.com/pages/about.html 没有理由会出现问题。如果你喜欢那样,那么你就这样做……没关系。

您始终可以使用 MOD_REWRITE“屏蔽”您的 URL。查找 mod_rewrite 和 .htaccess 文件。您将能够设置规则以将 Something.html“屏蔽”为pages/something.html。这并不难做到。

:)

This is fine. Theres no reason why it should be a problem. And theres no reason why there should be a problem with your URL being example.com/pages/about.html. If you prefer that, then you do that... its fine.

You can always "mask" your URLs using MOD_REWRITE. Look up mod_rewrite and .htaccess files. You will be able to set a rule to "mask" something.html to pages/something.html. Its not hard to do.

:)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文