Advertisement
Guest User

Untitled

a guest
Oct 8th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * @file
  5. * Atrium Drush
  6. */
  7.  
  8. /**
  9. * Implements drush_hook_provision_apache_vhost_config().
  10. */
  11. function atrium_provision_apache_vhost_config($uri, $data) {
  12.  
  13. // Rewrite imagecache files out of their PURL context to avoid 404 error.
  14. drush_log('Adding custom Virtual Host configuration for Atrium sites.');
  15. return array(
  16. '# Rewrite imagecache files out of their PURL context to avoid 403 error.',
  17. 'RewriteRule ^/(.*)/sites/(.*)/files/imagecache/(.*)$ /sites/$2/files/imagecache/$3 [NC,L]',
  18. );
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement