| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
digital1
Joined: 26 Oct 2007 Posts: 41 Location: India
|
Posted: Wed May 07, 2008 6:37 pm Post subject: Some pages of list return 404 error. |
|
|
Hello There,
Today i found a strange thing on my live forum. When i checked my member list which have 2 or more pages then on clicking 2 pages or next one i get 404 error pages. On hovering over 2nd page i get following url
-http://www.infoinn.pcriot.com/memberlist-8.php?mode=
Also similar is the case with pages present in ACP. Example
-http://www.infoinn.pcriot.com/adm/index-8.php?i=logs&sid=..............&mode=admin&st=0&sk=t&sd=d
 |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3384
|
|
| Back to top |
|
 |
digital1
Joined: 26 Oct 2007 Posts: 41 Location: India
|
Posted: Thu May 08, 2008 1:42 pm Post subject: Re: Some pages of list return 404 error. |
|
|
yes i have updated from phpbb premod 3.0.0 to 3.0.1
Any idea which code in these pages is convict. |
|
|
| Back to top |
|
 |
digital1
Joined: 26 Oct 2007 Posts: 41 Location: India
|
Posted: Thu May 08, 2008 2:00 pm Post subject: Re: Some pages of list return 404 error. |
|
|
I think the guilty code "$pagin_find" for "generate_pagination" becausing it is not matching with the one provided in the update please tell me that i am correct.
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN
$prev = ($on_page == 1) ? '' : $base_url . "{$url_delim}start=" . (($on_page - 2) * $per_page);
$next = ($on_page == $total_pages) ? '' : $base_url . "{$url_delim}start=" . ($on_page * $per_page);
if (!empty($phpbb_seo->seo_opt['url_rewrite'])) {
static $pagin_find = array();
static $pagin_replace = array();
static $prev_find = array();
if (empty($pagin_replace)) {
$pagin_find = array('`(\.[a-z0-9]+)([\w\#$%&~\-;:=,?@+]*)(&|\?)start=([0-9]+)`i', '`/([\w\#$%&~\-;:=,?@+]*)(&|\?)start=([0-9]+)`i' );
$pagin_replace = array( $phpbb_seo->seo_delim['start'] . '\\4\\1\\2', '/' . $phpbb_seo->seo_static['pagination'] . '\\3' . $phpbb_seo->seo_ext['pagination'] . '\\1' );
$prev_find = array($phpbb_seo->seo_delim['start'] . '0', $phpbb_seo->seo_static['pagination'] . '0' . $phpbb_seo->seo_ext['pagination']);
}
$page_string = str_replace($url_delim . 'start=0', '', $page_string);
$page_string = preg_replace($pagin_find, $pagin_replace, $page_string);
$prev = preg_replace($pagin_find, $pagin_replace, $prev);
$prev = str_replace($prev_find, '', $prev);
$next = preg_replace( $pagin_find, $pagin_replace, $next);
}
$template->assign_vars(array(
$tpl_prefix . 'BASE_URL' => $base_url,
'A_' . $tpl_prefix . 'BASE_URL' => addslashes($base_url),
$tpl_prefix . 'PER_PAGE' => $per_page,
$tpl_prefix . 'PREVIOUS_PAGE' => $prev,
$tpl_prefix . 'NEXT_PAGE' => $next,
$tpl_prefix . 'TOTAL_PAGES' => $total_pages)
);
// www.phpBB-SEO.com SEO TOOLKIT END
|
|
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3384
|
|
| Back to top |
|
 |
digital1
Joined: 26 Oct 2007 Posts: 41 Location: India
|
Posted: Thu May 08, 2008 2:13 pm Post subject: Re: Some pages of list return 404 error. |
|
|
Yes , that was the guilty code. Oh my god how i missed that!!!
Thanks for the guidance again. Forum is working nice now.
other page had correct setting.  |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |