Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @file
- * Atrium Drush
- */
- /**
- * Implements drush_hook_provision_apache_vhost_config().
- */
- function atrium_provision_apache_vhost_config($uri, $data) {
- // Rewrite imagecache files out of their PURL context to avoid 404 error.
- drush_log('Adding custom Virtual Host configuration for Atrium sites.');
- return array(
- '# Rewrite imagecache files out of their PURL context to avoid 403 error.',
- 'RewriteRule ^/(.*)/sites/(.*)/files/imagecache/(.*)$ /sites/$2/files/imagecache/$3 [NC,L]',
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement