How to make my own loging page
-
Hello
I am following a tutorial to have tis own login page.
if you look at the minute 2.19, he enter https://82.241.58.241/Wordpress/login and he get a page.
On my server, if I enter https://www.myserver.ch/login, I got an error page.That tutorial is a bit old and may be is due to WP version, but with last version, is possible to have page/folder login?
In the /wp-content/themes/twentyseventeen_perso/function.php file, I also added the follwing line
// Add by pamey add_action('send_headers','site_router'); function site_router(){ $root = str_replace('index.php','',$_SERVER['SCRIPT_NAME']); // print_r($root); $url = str_replace($root,'',$_SERVER['REQUEST_URI']); // print_r($url); $url = explode("/",$url); // print_r($url); if(count($url) == 1 && $url[0] == 'login') { echo "LOGIN"; require 'tpl-login.php'; } }
In that way, when I enter https://www.myserver.ch/login, it redirect to my tp-login.php template.
No my problem is that https://www.myserver.ch/login return me an error, instead of a page… ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to make my own loging page’ is closed to new replies.