admin管理员组文章数量:1122826
Something like this:
domain/anystringexcept/wp-adminand/specificpage -> domain/specificpage
domain/wp-admin (no redirection) domain/specificpage (no redirection)
Could anyone help me? Thank you.
Something like this:
domain.com/anystringexcept/wp-adminand/specificpage -> domain.com/specificpage
domain.com/wp-admin (no redirection) domain.com/specificpage (no redirection)
Could anyone help me? Thank you.
Share Improve this question edited Aug 29, 2024 at 6:50 Hauehauba asked Aug 28, 2024 at 7:18 HauehaubaHauehauba 13 bronze badges 1- 1 You would have to ask the Redirection team if this was possible. I suspect the best possible way to go about doing this is by editing the .htaccess file though: wordpress.stackexchange.com/a/377773/60844 – Tony Djukic Commented Aug 28, 2024 at 12:59
1 Answer
Reset to default 0The solution is extremely simple.
Just create a rule redirecting all URLs to /specificpage with the position set as 1 (remembering to activate regex for the rule):
^.*
And two "do nothing" rules, one for /wp-admin and another one for /specificpage, both with the position set as 0.
That's all.
本文标签:
版权声明:本文标题:redirect - Regex and config for redirecting all URLs, except wp-admin and specificpage, to a specific page within the same domai 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736296406a1929786.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论