I want to set my permalink as:
But I want WordPress to ignore the post name at the end, because I may change it later.
How can I do it with
.htaccess, or is there another way?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
wp-admin/options-permalink.php (Permalinks) you can easily set this using Custom Structure:
So you can browse the Hello World post with:
But if you strip out the postname from the URL like below:
You can still access the Hello World post.
CAUTION Changing permalink in any live site may cause bad effect in SEO, and cause huge amount of 404 pages without proper redirection. So just think about it before switching to any changes in permalink.