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
Add a comment  | 

1 Answer 1

Reset to default 0

The 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.

本文标签: