简体   繁体   English

WordPress-默认和帖子名称URL永久链接

[英]Wordpress - Default and Post Name URL Permalink

I'm not sure if it's possible but I'm looking to have Wordpress use the Post name Permalink but also have it so i can access a single blog post by typing in ?p=xxx. 我不确定是否可以,但我希望Wordpress使用帖子名称Permalink,但也要使用它,以便我可以通过输入?p = xxx来访问单个博客帖子

For accessing a blog post by: 通过以下方式访问博客文章:

website.com/this-is-a-post and website.com/?p=2342 website.com/this-is-a-postwebsite.com/?p=2342

My Post Preview button uses the default structure but has started redirecting to my homepage (multisite config). 我的帖子预览按钮使用默认结构,但已开始重定向到我的主页(多站点配置)。 Is Wordpress able to handle both, where would the best place to start looking if i want to change it? Wordpress能够处理这两种情况吗?如果我想更改它,哪里可以找到最好的地方?

每个帖子中都有一个显示“获取短链接”的按钮,无论您如何设置帖子名称永久链接,该按钮都应使用http://yoursite.com?p=[ID]短链接生成URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM