将页面保存在自己的文件夹中?
我想知道是否可以将我的所有页面保存在网站上的一个文件夹中。并只保留 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很好。没有理由说它会成为一个问题。您的 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.
:)