[help] next page no error help me

Started on the old forum in February 2012 · view the original in the archive · old links redirect here

2 replies · 329 views · started 14 years ago · 1 min read

2 participants
12345xmen Developer · 239 posts #1

hi friends

i use ulkoi forum script their is a problm when user go to page 2,3 page not open

i use this code for that

print "</td><td colspan=\"4\" align=\"right\">";
	
	
	$pages=pagination($totalrecords,$p,$config->numthreadsperpage);
	
	if(is_array($pages))
	{
	print "<b>Pages:  ";
	foreach($pages as $key => $val)
	{
		if($val == $p)
		{	print $key."  ";	}
		else{	print "<a href=\"".$config->url."showforum-".$forumid."-".$val.".html\">".$key."</a>  ";	}
		
	}
	print "</b>";
	}

and my .htcess code is

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule ^showforum-([0-9]+)/p/([0-9]+).html$ showforum.php?fid=$1&p=$2 [L]
RewriteRule ^showforum-([0-9]+).html$ showforum.php?fid=$1 [L]

RewriteRule ^showthreads-([0-9]+)/p/([0-9]+)-(.*).html$ showthread.php?tid=$1&p=$2 [L]
RewriteRule ^showthreads-([0-9]+)-(.*).html$ showthread.php?tid=$1 [L]

</IfModule>

my page 2 url is http://mysite/forum/showforum-32-2.html

same as page 3 http://mysite/forum/showforum-32-3.html

when i got for 2nd page its show

Not Found

The requested URL /mysite/forum/showforum-32-3.html was not found on this server.

where i do wrong in url rewite why its give error !

GumSlone Administrator Principal · 1,690 posts #2
<IfModule mod_rewrite.c> 

RewriteEngine On 

RewriteRule ^showforum-([0-9]+)-([0-9]+).html$ showforum.php?fid=$1&p=$2 [L] 
RewriteRule ^showforum-([0-9]+).html$ showforum.php?fid=$1 [L] 

RewriteRule ^showthreads-([0-9]+)-([0-9]+)-(.*).html$ showthread.php?tid=$1&p=$2 [L] 
RewriteRule ^showthreads-([0-9]+)-(.*).html$ showthread.php?tid=$1 [L] 

</IfModule> 

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

12345xmen Developer · 239 posts #3

thanks lot dear i forget to remove /p/ from .htacess

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close