Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionIs there any way to redirect /
to with
.htaccess
?
I'm using WordPress only for the API.
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionIs there any way to redirect https://example/
to https://example/admin
with .htaccess
?
I'm using WordPress only for the API.
Share Improve this question edited Apr 4, 2019 at 17:02 MrWhite 3,8911 gold badge20 silver badges23 bronze badges asked Apr 4, 2019 at 15:21 PedroPedro 233 bronze badges 01 Answer
Reset to default 2At the top of your .htaccess
file before the WordPress front-controller try the following:
RewriteRule ^$ /admin [R,L]
This redirects https://example/
to https://domain/admin
. This is a temporary (302) redirect.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745628363a4636949.html
评论列表(0条)