url rewriting – How to map a subdomain to all posts and some pages

Question

I’m looking to map all posts on my site to a subdomain like blog.example.com.
I have permalinks setup to be example.com/blog/year/monthnum/post-name. I’d like to rewrite /blog/ to blog.example.com.

I’d also like to rewrite a custom post type, that being ebooks to ebooks.example.com.

0
Cross 3 weeks 2022-09-02T22:00:21-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse