Title: benlbot's Replies | WordPress.org

---

# benlbot

  [  ](https://wordpress.org/support/users/benlbot/)

 *   [Profile](https://wordpress.org/support/users/benlbot/)
 *   [Topics Started](https://wordpress.org/support/users/benlbot/topics/)
 *   [Replies Created](https://wordpress.org/support/users/benlbot/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/benlbot/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/benlbot/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/benlbot/engagements/)
 *   [Favorites](https://wordpress.org/support/users/benlbot/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress MU Domain Mapping] Relative URLs being broke](https://wordpress.org/support/topic/relative-urls-being-broke/)
 *  [benlbot](https://wordpress.org/support/users/benlbot/)
 * (@benlbot)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/relative-urls-being-broke/#post-13157864)
 * [@joosuak](https://wordpress.org/support/users/joosuak/)
    Hello, I fixed it on
   my site by changing the code of the function into :
 *     ```
       // fixes the plugins_url
       function domain_mapping_plugins_uri( $full_url, $path=NULL, $plugin=NULL ) {
       	$wp_content_dir_exploded = explode(DIRECTORY_SEPARATOR, WP_CONTENT_DIR);
       	$wp_content_foldername = $wp_content_dir_exploded[count($wp_content_dir_exploded) - 1 ];
       	return get_option( 'siteurl' ) . substr( $full_url, stripos( $full_url, $wp_content_foldername ) - 1 );
       }
       ```
   
 * I have defined WP_CONTENT_DIR in my wp-config.php but it is also defined in wp-
   load.php so it whould work for you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Recipe Maker] Issue with the import feature of the premium version](https://wordpress.org/support/topic/issue-with-the-import-feature-of-the-premium-version/)
 *  Thread Starter [benlbot](https://wordpress.org/support/users/benlbot/)
 * (@benlbot)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/issue-with-the-import-feature-of-the-premium-version/#post-12722334)
 * Ok, I was writing an e-mail and finaly post it here.
 * Thanks for the quick answer.

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