简体   繁体   中英

I am trying to access one of my plugins page but it is not found

I have a login page that correctly authenticate users, the problem is that it does not find the next file to open it.

my files are as following

  **Plugin Root directory**
     |                  |
     myindex_2343.php   | 
                        **MyClasses directory**
                          |               |
                          Login_2343.php  Member_2343.php

Login_2343.php

<form name="mylogin" action="" method="post">
     .....
</form>
<?php
       if(isset($_POST['username']))
       {
            Authentication code goes here
            if(Authenticate)
            {
              echo '<script type="text/javascript">window.location.href="MyClasses 
              /Member_2343.php";</script>';
             }
        }
  ?>

The error message is as following:

   The requested URL /wordpress/wp-admin/MyClasses/Member_2343.php was not 
   found on this server.

add your plugin root in window.location.href

<form name="mylogin" action="" method="post">
     .....
</form>
<?php
       if(isset($_POST['username']))
       {
            Authentication code goes here
            if(Authenticate)
            {
              echo '<script type="text/javascript">window.location.href="/pluginroot/MyClasses 
              /Member_2343.php";</script>';
             }
        }
  ?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM