English 中文(简体)
htaccess诉硬编码
原标题:htaccess vs hard coded
  • 时间:2010-11-05 12:14:34
  •  标签:

在建立一套可贵的建议?

  1. Making a htaccess dynamically create the pages based on ?pg=name or
  2. Making a FTP connection to auto create each file on the fly? This means when a new page is created/edited/deleted the admin, when saved, would ftp into the site and create the page.

Pros and Cons

  1. "Pro" Less files means less space
  2. "Con" More continually overhead for apache to redirect
  3. "Con" More space taken
  4. "Pro" Less work to find file sense its created and only once loaded when changed

ALright,让我澄清。 这是更好的选择。

  1. create index.php and have all htaccess redirect to it sending ?pg=name and then get the content from database
  2. have an admin automatically ftp into a site when content is created/edited/delete and create the page so when the person types the page in its hard coded
最佳回答

毫无疑问,贵监委使用阿帕奇·朗德-摩托拉斯的最佳途径。 因此,今后你更灵活地改变你想要展示的URLs的方法,并加快新内容的产生,以便它每次都不得不通过FTP上载。

如果你不得不使用FLTP来使用你的CMS,那么我恐怕它会赢得一些可衡量的信号,而这是CMS的好处之一。

你更好的选择是1。 改写。

问题回答

如果你想要的话,你可以将这些选择组合起来——在你的网页上使用冰冠名称,重新书写,然后从档案或数据库中填满数据。





相关问题
热门标签