htaccess 文件内容。我想设置我的静态内容的过期时间,比如图像、js、css
RewriteEngine On
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]
我的图像位置是
www.sitename.com/css/css/css files
www.sitename.com/images/img/images
像这样