为wordpress设置一个简单的后台登陆地址
- 时间:2020-05-29 14:26:07
- 分类:网络文摘
- 阅读:163 次
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/
推荐阅读:New Report Discovers Disconnect Between Retailers And Social Med Counting the Prime Arrangements The Minimum Absolute Difference Algorithm of an Array Implement the Depth First Search Algorithm in Graph using Simple Beginner’s Introduction to PHP Memcached Using the Regular Expression to Replace External Links in WordPr 5 Smart Guides In Taking The Best Hosting Provider Checking Subtree of Another Tree using Preorder Traversal or Rec How to Optimize WordPress Website for Speed? How to Compute the Day of the Week using C++?
- 评论列表
-
- 添加评论