Here is my url to a custom type :
http://host/movie/my-slug
When I go to this link, I'm redirected to
http://host/movie/my-slug/?post_type=movie
which results in a 404 error.
I use Rewrite Rule Inspector wordpress plugin for listing the matching rewrite rules.
It appears that my url matches three rules : (regex new-url source)
- movie/([^/]+)(/[0-9]+)?/?$ index.php?post_type=movie&name=$matches[1]&page=$matches[2] movie
- (.?.+?)(/[0-9]+)?/?$ index.php?pagename=$matches[1]&page=$matches[2] page
- [^/]+/([^/]+)/?$ index.php?attachment=$matches[1] post
Witch one Wordpress will choose for resolving my url ? Why do I have a 404 error ?