| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 795
|
Posted: Sun Feb 04, 2007 8:11 pm Post subject: Redirection loop for auto-refresh messages |
|
|
I've installed the Advanced rewrite Mod and Zero duplicate on a test server. It may be corrected in the upcoming version 0.2.2, but I found 0.2.0's redirection to index.php common in the message displays after submit. I applied the change below to avoid the loop:
| Code: | | $message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid($board_config['script_path']) . '">', '</a>'); |
The URL generated by phpbb_seo_class's rewrite would point back to the caller URL (e.g., the remapped viewforum.php) including the parameters, not the forum index, thereby redisplaying the message. Sort of amusing the first time. The temporary code change is append_sid("index.$phpEx") to append_sid($board_config['script_path']). Rather than fuss with phpbb_seo_class, I simply changed all occurrences of the base install since I don't want to see index.php anyway. |
_________________ Dan Kehn |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |