Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Not all logic executes on addon domains #12

Open
WDKevin opened this issue Jul 5, 2016 · 0 comments
Open

Not all logic executes on addon domains #12

WDKevin opened this issue Jul 5, 2016 · 0 comments

Comments

@WDKevin
Copy link

WDKevin commented Jul 5, 2016

I've updated the plugin to work with the most recent version of WordPress and after adding my addon domains and assigning them to a specific category, everything works well except for some additional logic I added. I added some hooks to the category_link and the_permalink functions to analyze the target URL and rewrite it using the addon domain if the primary category (from Yoast SEO) is the same category the addon domain is assigned to. This logic works flawlessly when I access the website using the primary domain name. However, when I access the site using the addon domains that were added via DMS, the logic doesn't seem to work.

For example, my main website is www.domain.com but I have added www.category1.com to DMS and assigned it to 'Category 1' blog category. When I go to www.domain.com and see a link for a post that is in 'Category 1', the link is rewritten as www.category1.com/post-title but when I access the site through www.category1.com, the same link is displayed as www.domain.com/category1/post-title. I would like the logic that executes on domain.com to also be executed on all addon domain but it doesn't seem to work at all. It doesn't appear as if any of the plugin logic is being used at all when accessing the site through any addon domains.

Can you please point me in the right direction? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant