Forum

Hiawatha Pimcore rewrites

Chris
31 October 2014, 19:43

Hiawatha version: 9.7
Operating System: FreeBSD 10.0

I need help porting these rewrites to hiawatha:
https://github.com/pimcore/pimcore/blob/master/.htaccess
Hugo Leisink
31 October 2014, 20:35
It should be something like this. Note that I haven't tested it. I have no idea what the lines for WebDAV do.
UrlToolkit {
ToolkitID = pimcore

Method GET Call pimcore_webdav
Method HEAD Call pimcore_webdav

Match ^/plugins/.*/static.* Return
Match ^/.*modules/.*/static.* Return
Match ^/pimcore/static.* Return

Match ^/website/var/(?!tmp|assets|plugins|areas) DenyAccess
Match ^/plugins/.*$ DenyAccess
Match ^/pimcore/.*$ DenyAccess

RequestURI exists Return
Match .* Rewrite /index.php
}

UrlToolkit {
ToolkitID = pimcore_webdav

# === I don't know what these two lines do
RewriteCond %{DOCUMENT_ROOT}/website/var/assets%{REQUEST_URI} -f
RewriteRule ^(.*)$ /website/var/assets%{REQUEST_URI} [PT,L]
# ===
}
This topic has been closed.