dsdtszi0520538 2019-02-27 11:44 采纳率: 100%
浏览 187

Wordpress永久链接问题。 无法将“登录”设置为永久链接。 由于此固定链接的URL提供“找不到页面”消息

I am trying to create a page with a permalink “login” (picture 1). If I save my page with this permalink “login” the page is not been found (picture 2). But if I edit the permalink for example as “login1” the page is published properly (picture 3). And working okay.

I am using “Webcraftic Hide login page” for WordPress login so it should not contradict with Wordpress login. Besides I have another WordPress website which is using login as a permalink for one of the page.

Before installing this “Webcraftic Hide login page” plugin that link (siteurl/login) used to take me to the wordpress login path. (“login” used to redirect as “wp-login.php”).After installing this “Webcraftic Hide login page” plugin I have renamed the worpress login path.

I am pretty sure it will do the same thing if I disable that plugin. Can this be the issue. If so how to resolve it.

I need to make the permalink of the page as “login”. How to correct that.

enter image description here

enter image description here

enter image description here

  • 写回答

1条回答 默认 最新

  • doupaimo8288 2019-02-28 06:29
    关注

    I have tested it in my wordpress install, added and activated "Webcraftic Hide login page".

    I created a page with permalink "login".

    It do not redirect to wp-login.php or wp-admin

    It do not shows 404 page

    No issues found

    =======================================================

    Also you should be aware that the redirect only applies if there is nothing else at /login.

    As soon as e.g. you create a page /login the redirect doesn't apply any more.

    =======================================================

    In your case, It could be some other plugin or any setting in your installation.

    I would suggest you to: Create a page-template and assign it to your login page:

    page-template-login.php

    <?php
    /*
    Template Name: My Login
    */
    
    get_header();
    ?>
        <!-- HTML Container -->
    
        <!-- HTML Container -->
    <?php
    get_footer();
    

    Save it in your theme directory Then go to your page: in WP Admin > Pages > Your login page And change the page template to "My Login" Save the page

    Then Go to: WP Admin > Settings > Permalinks And Click "Save Changes" without making changes.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题