I've a WordPress install where I have redirected all pages (except the wp-admin and wp-login) to a different url.
(我安装了WordPress,已将所有页面(wp-admin和wp-login除外)重定向到另一个URL。)
I want to exclude one page (called /your-login) from being redirected.
(我想从重定向中排除一页(称为/ your-login)。)
This page is in effect the wp-admin page where the login slug has been changed. (该页面实际上是已更改登录名的wp-admin页面。)
How can i exlude this page from being redirected in the htaccess file?
(如何排除此页面在htaccess文件中的重定向?)
The current code i'm using to perform the redirects in the htaccess file is:
(我正在执行htaccess文件中的重定向的当前代码是:)
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^(/wp-admin|. wp-login.php. ) [NC] RewriteRule (.*) https://mywebsite.co.uk/ $1 [R=301,L]
(RewriteEngine On RewriteBase / RewriteCond%{REQUEST_URI}!^(/ wp-admin |。wp -login.php。 )[NC] RewriteRule(。*) https://mywebsite.co.uk/ $ 1 [R = 301,L ])
where mywebsite.co.uk would be the site being redirected to.
(mywebsite.co.uk将被重定向到的站点。)
Thanks!
(谢谢!)
ask by Stephen Norman translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…