Title: Domain Mapping with YOURLS
Last modified: August 22, 2016

---

# Domain Mapping with YOURLS

 *  Resolved [Tony](https://wordpress.org/support/users/tdinatale/)
 * (@tdinatale)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/domain-mapping-40/)
 * We are using the Domain Mapping plugin with WP and your YOURLS plugin. We have
   our admin panel on a different domain than the public blog domain for load balancing
   purposes. Therefore, we need a way to hook into your core code without editing
   it directly so that we can add something like the following:
 *     ```
       if (function_exists(domain_mapping_siteurl) {
             //the domain mapping plugin is installed
             $post_url = str_replace(get_original_url( 'siteurl'),domain_mapping_siteurl(false), $post_url);
       }
       ```
   
 * To override yourls-link-creator.php line 310
    `$post_url = get_permalink($postID);`

Viewing 1 replies (of 1 total)

 *  Plugin Author [Andrew Norcross](https://wordpress.org/support/users/norcross/)
 * (@norcross)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/domain-mapping-40/#post-5386096)
 * I’m not familiar with this plugin in that capacity. whether or not the domains
   are mapped, the permalink should still be the same, right? what URL is it sending
   to YOURLS?

Viewing 1 replies (of 1 total)

The topic ‘Domain Mapping with YOURLS’ is closed to new replies.

 * ![](https://ps.w.org/yourls-link-creator/assets/icon-256x256.png?rev=1081567)
 * [YOURLS Link Creator](https://wordpress.org/plugins/yourls-link-creator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yourls-link-creator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yourls-link-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/yourls-link-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yourls-link-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yourls-link-creator/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrew Norcross](https://wordpress.org/support/users/norcross/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/domain-mapping-40/#post-5386096)
 * Status: resolved