Topic: login -- redirect problem
when i open a forum or a topic,then click login,user pass and login,redirect to index.php but not the forum or topic i'm readding before, how to solve this problem,
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → login -- redirect problem
when i open a forum or a topic,then click login,user pass and login,redirect to index.php but not the forum or topic i'm readding before, how to solve this problem,
That sounds like your browser isn't sending the referrer: are you using any kind of internet security programs?
No... when i using forums.punbb.org
it works well
Are you using a mod that had you modify login.php?
the plugin what i'm using
DB management
Forum cleanup
User management
Spam words
i didn't remember ever modified the login .php
smartys
check your base url.
checked.
and Smarty i'm using PunRewrite mod.
how can i modifi the login.php so that will redirect to yourname.com/f3.htm or yourname.com/t34.htm
thanks
Link?
Oh,,i've solved the problem just modify the login.php
// Try to determine if the data in HTTP_REFERER is valid (if not, we redirect to index.php after login)
$redirect_url = (isset($_SERVER['HTTP_REFERER']) && preg_match('#^'.preg_quote($pun_config['o_base_url']).'/(.*?)\.php#i', $_SERVER['HTTP_REFERER'])) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : 'index.php';
there is a
['o_base_url']).'/(.*?)\.php#i',
just change
.php
to
.html
PunBB Forums → PunBB 1.2 troubleshooting → login -- redirect problem
Powered by PunBB, supported by Informer Technologies, Inc.