Title: [Plugin: NextGEN Gallery] Gallery files on subdomain
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] Gallery files on subdomain

 *  [steff3107](https://wordpress.org/support/users/steff3107/)
 * (@steff3107)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-17/)
 * Hi!
 * I’d like to save my gallery under a subdomain, so that pictures are linked like
   that: [http://media.domain.com/nature/bird1.jpg](http://media.domain.com/nature/bird1.jpg).
 * Is this possible with NextGEN? It seems as if the changeable path is only for
   recursive paths.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [steff3107](https://wordpress.org/support/users/steff3107/)
 * (@steff3107)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-17/#post-1041108)
 * Well, it’s possible to make this without changes in NextGEN:
 *     ```
       function SE_gallery_filter_content( $content ) {
         if (strpos($content, "http://www.domain.de/wp-content/gallery") !== FALSE) {
       		$content = str_replace('http://www.domain.de/wp-content/gallery', 'http://media.domain.de', $content);
         };
         return $content;
       };
   
       add_filter('the_content', 'se_gallery_filter_content', 100);
       ```
   
 * => The subdomain media.domain.de points directly on [http://www.domain.de/wp-content/gallery](http://www.domain.de/wp-content/gallery).
   The code above only replaces the normal url ([http://www.domain.de/wp-content/gallery/&#8230](http://www.domain.de/wp-content/gallery/&#8230);)
   by the new subdomain-url ([http://media.domain.de/&#8230](http://media.domain.de/&#8230);).
 * But this is not a good solution, because it will slow down wordpress!
 *  [chroniko](https://wordpress.org/support/users/chroniko/)
 * (@chroniko)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-17/#post-1041449)
 * I have the same problem. Better solution?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: NextGEN Gallery] Gallery files on subdomain’ is closed to new
replies.

## Tags

 * [nextgen](https://wordpress.org/support/topic-tag/nextgen/)
 * [subdomain](https://wordpress.org/support/topic-tag/subdomain/)

 * 2 replies
 * 2 participants
 * Last reply from: [chroniko](https://wordpress.org/support/users/chroniko/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-17/#post-1041449)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
