admin管理员组文章数量:1317579
I have a reverse proxy in front of WP that maps some requests on the root example/page1/
over to the wp install wp.example/page1/
.
This works fine until the url is missing the trailing slash. WP returns a 301
that is the absolute url wp.example/page1
. I am trying to figure out how that URL is created, and hopefully change it.
I updated WordPress Address (URL)
and Site Address (URL)
in WP -> Settings, but that doesn't change the response from what I saw. Looking at the wp_posts
table the guid
has an absolute url, maybe that is used with a transform to the pretty url?
Can I just globally set the redirect URLS for WP, preferably to being relative, without breaking all the paths for the assets uploaded to wp_content
?
本文标签: redirectHow does WordPress format the url on a 301 when a trailing slash is missing
版权声明:本文标题:redirect - How does WordPress format the url on a 301 when a trailing slash is missing? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742019294a2414365.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论