0

通常会有一个看起来像这样的 webroot:

/www/
  |
  +--index.php
  |
  +-- js/
  |   |
  |   +-- xyz.js
  |
  +-- css/
  |    |
  |    +--xyz.css
  |
  +---etc.....

通过我的设置,将所有内容移动到一个公共子文件夹中对我最有利,将 Cake 应用程序的 index.php 留在根目录中。IE:

/www/
  |
  +--index.php
  |
  |
  +-- resources
         |
         +-- js/
         |   |
         |   +-- xyz.js
         |
         +-- css/
         |    |
         |    +--xyz.css
         |
         +---etc.....

我的 .htaccess 会是什么样子?

4

0 回答 0