Need to resolve custom post type and subdomain conflict
-
I just setup a custom post type and imported my shop from a subdomain (multisite) so that all of my post are now on the same www domain. My original subdomain was keyword.mydomain.com and I’ve moved all of my posts from that domain to a custom post type with a slug of ‘keyword’.
So instead of having links like: keyword.mydomain.com/link/
I now have https://www.mydomain.com/keyword/links/My thoughts were that I could setup a rewrite in the htaccess to redirect the links from the subdomain to the new custom post type directory.
After some fiddling, I found that I can at least get these domain links to resolve to the www home page through a subdomain with a redirect in my cpanel. This of course is not what I want, but of the various rewrites and redirects I’ve tried in my htaccess file, none seem to work. I’ve tried them with and without the subdomain listed in the cpanel.
The main issue I come up against is that if I try to set the cpanel subdomain redirect to https://www.mydomain.com/keyword/ then my custom post types stop resolving.
Any pointers to cleaning up this mess?
- The topic ‘Need to resolve custom post type and subdomain conflict’ is closed to new replies.