Sorry if this is a duplicate – I can’t find an answer.
How do I rewrite a custom post type archive page to a ‘man-made’ WordPress page?
For example:
- Single page:
http://www.mywebsite.com/cool-post-type/awesome-single-post/
- Archive page:
http://www.mywebsite.com/cool-post-type/
I want http://www.mywebsite.com/cool-post-type/
to rewrite to http://www.mywebsite.com/about-cool-post-types/
.
Can I just do this with htaccess and what would the syntax be? (I’m not good at htaccess!)
This does not work:
RewriteRule ^cool-post-type\/\?$ /about-cool-post-types [L]
Or do I have to do this in the WordPress source code? I don’t want to!