我有个虚拟路径,然后我想加载静态文件的方式是...index.php/resource/style.css,应该怎么写

解决方案 »

  1.   

    用的是oxwall,什么也不会,求大神,问题现在是install页面的css加载不上,直接访问跳转到install页面
      

  2.   


    RewriteEngine OnAddEncoding gzip .gz
    AddEncoding gzip .gzip
    <FilesMatch "\.(js.gz|js.gzip)$">
      ForceType text/javascript
    </FilesMatch>
    <FilesMatch "\.(css.gz|css.gzip)$">
      ForceType text/css
    </FilesMatch>RewriteCond %{REQUEST_URI} .*/http-bind
    RewriteRule (.*) /http-bind [L]RewriteCond %{REQUEST_URI} !^/index\.php
    RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
    RewriteCond %{REQUEST_URI} !/ow_updates/
    RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
    RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
    RewriteRule (.*) index.php
      

  3.   

    求教我有一个rewrite语句用于把请求全部重写到index.php,在apache的空间中一切正常,放到IIS6+isapi_rewrite3.0的环境下发现不能运行了,应该是环境不同规则有所变化,只有一句,求麻烦转换一下……RewriteRule . index.php传送门:
    http://bbs.csdn.net/topics/390272752