Can I remove CPT path in URL? I’m migrating Drupal site to WP.
-
Hello.
I have a question.
Before starting, I will give the background information.
I’m migrating my drupal site to WP. Permalink of the drupal site is just ‘https://domain.com/title’ Post type doesn’t matter. The drupal site uses level-0 category to separate posts such as post type. The site have more than 10,000 articles and a ton of e-newsletter was delivered.here is my question.
When I make a new custom post type such as ‘products’ in WP, every articles that belong to the cpt have ‘/products/’ in the slug. So it is ‘https://domain.com/products/title’
Is there any ways to remove /products/ in the url? So I can keep the url structure. Not only SEO, but also I can use custom post type. The delivered e-newsletters point the urls like ‘https://domain.com/title’If I pull everything into a single post type, I know that I can keep the url structure. However, it means everything is in the same pot and I will definitely meet the problems that relates to separate articles such as archive.
I also thought about wp-redirection, but it can’t cover because the old url doesn’t include custom post type information.
Could anybody give your input how I can use cpt and keep the same url structure as Drupal?
Thanks.
- The topic ‘Can I remove CPT path in URL? I’m migrating Drupal site to WP.’ is closed to new replies.