开发者

Keeping Pages in its own folder?

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开发者_JAVA技巧/pages/about.html but theirs a way to change that right?


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.

:)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜