You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
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!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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!
The text was updated successfully, but these errors were encountered: