0
我在子文件夹http://example.com/some/other/sub/folder/
中有应用程序。 而.htaccess文件:在.htaccess中重写静态文件
RewriteEngine on
RewriteBase /some/other/sub/folder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?p=$1 [QSA,L]
模板文件包含绝对URL的图像,js和css文件:/images/header.png
,/js/common.js
等
我的问题是使用绝对路径静态文件无法访问。
Thx。
非常感谢,但我们找到的最简单的解决方案就是将应用移动到服务器的根目录;) – 2010-10-28 07:56:01