文件操作 - .htaccess
返回文件管理
返回主菜单
删除本文件
文件: /var/softaculous/pimcore/.htaccess
编辑文件内容
RewriteEngine On RewriteRule ^(.*)$ public/$1 # ASSETS: check if request method is GET (because of WebDAV) and if the requested file (asset) exists on the filesystem, if both match, deliver the asset directly RewriteCond %{REQUEST_METHOD} ^(GET|HEAD) RewriteCond [[softpath]]/public/var/assets%{REQUEST_URI} -f RewriteRule ^(.*)$ /var/assets%{REQUEST_URI} [PT,L] # Thumbnails RewriteCond %{REQUEST_URI} .*/(image|video)-thumb__[\d]+__.* RewriteCond [[softpath]]/public/var/tmp/thumbnails%{REQUEST_URI} -f RewriteRule ^(.*)$ /var/tmp/thumbnails%{REQUEST_URI} [PT,L] # static pages RewriteCond %{REQUEST_METHOD} ^(GET|HEAD) RewriteCond %{QUERY_STRING} !(pimcore_editmode=true|pimcore_preview|pimcore_version) RewriteCond [[softpath]]/public/var/tmp/pages%{REQUEST_URI}.html -f RewriteRule ^(.*)$ /var/tmp/pages%{REQUEST_URI}.html [PT,L]
修改文件时间
将文件时间修改为当前时间的前一年
删除文件