Commit 2baa7dd5 authored by memtkmcc's avatar memtkmcc

Issue #3149961: Nginx - Add extra rewrite for legacy imagecache paths

parent 18bd7c1e
......@@ -932,6 +932,7 @@ location ^~ /files/ {
# fix common problems with old paths after import from standalone to Aegir multisite
rewrite ^/files/imagecache/(.*)/sites/default/files/(.*)$ /sites/$main_site_name/files/imagecache/$1/$2 last;
rewrite ^/files/imagecache/(.*)/files/(.*)$ /sites/$main_site_name/files/imagecache/$1/$2 last;
rewrite ^/sites/(.*)/files/imagecache/(.*)/sites/(.*)/files/(.*)$ /sites/$main_site_name/files/imagecache/$2/$4 last;
set $nocache_details "Skip";
<?php endif; ?>
rewrite ^/files/(.*)$ /sites/$main_site_name/files/$1 last;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment