Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
rewrite rule for login & register
eilko #1
Member since Feb 2012 · 22 posts
Group memberships: Members
Show profile · Link to this post
Subject: rewrite rule for login & register
the links to login and register uses the ?do= statements. I would like to rewrite them /register and /login. My server is frequently visited by robots that request the page with the ?do=login variable.

I have a rewrite rule that does this, but how do I change the template (default template) to show the /register link instead of the ?do=register one?

   <div class="tools group">
        <!-- USER TOOLS -->
        <?php if ($conf['useacl']): ?>
            <div id="dokuwiki__usertools">
                <h4 class="a11y"><?php echo $lang['user_tools']; ?></h4>
                <ul>
                    <?php
                        if (!empty($_SERVER['REMOTE_USER'])) {
                            echo '<li class="user">';
                            tpl_userinfo(); /* 'Logged in as ...' */
                            echo '</li>';
                        }
                        tpl_toolsevent('usertools', array(
                            tpl_action('admin', true, 'li', true),
                            tpl_action('profile', true, 'li', true),
                            tpl_action('register', true, 'li', true),
                            tpl_action('login', true, 'li', true)
                        ));
                    ?>
                </ul>
            </div>

anyone?
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-12-14, 09:32:59 (UTC +01:00)