为wordpress设置一个简单的后台登陆地址
- 时间:2020-05-29 14:26:07
- 分类:网络文摘
- 阅读:82 次
wordpress默认的仪表盘实际登陆地址是 http://yoursite.com/wp-login.php。如果wordpress是安装在子目录中,实际登陆地址就是像 http://yoursite.com/子目录名/wp-login.php 这样的形式。想让登陆地址变得更简捷,如:http://yoursite.com/login 这样的形式,可以通过为.htaccess增加一条重写规则来实现。方法如下:

为wordpress设置一个简单的后台登陆地址
在本地打开.htaccess文件,添加如下规则:
- RewriteRule ^login$ http://yoursite.com/wp-login.php [NC,L]
之后,保存并重新上传.htaccess文件,使用 http://yoursite.com/login 来登陆后台,会自动跳转到wordpress的实际登陆地址。
说明:如果wordpress安装在子目录,别忘了更改规则中的网址为http://yoursite.com/子目录名/wp-login.php。
原文:http://digwp.com/2011/01/simpler-login-url/
推荐阅读:How to Start a Podcast on WordPress? Algorithm to Compute the Shortest Distance between Points on Two C++ Algorithm to Compute the One-Dimensional (Linear) Interpolat C++ Algorithms to Find Pair of Sum Given a Collection of Numbers How to Implement strStr() function in C++? How to Check Valid Word Abbreviation in C++? CloudFlare Enterprise Plan Overview Powerful Integers by Bruteforce Algorithm using C++ How to Check if Any Three Points can Make a Triangle? How to Convert Set to Vector in C++?
- 评论列表
-
- 添加评论