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?