[help] next page no error help me

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [help] next page no error help me

    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


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

    PHP Code:
    <IfModule mod_rewrite.c>


    RewriteEngine On

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

    RewriteRule ^showthreads-([0-9]+)/p/([0-9]+)-(.*).htmlshowthread.php?tid=$1&p=$[L]
    RewriteRule ^showthreads-([0-9]+)-(.*).htmlshowthread.php?tid=$[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 !

    #2
    PHP Code:
    <IfModule mod_rewrite.c


    RewriteEngine On 

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

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

    </
    IfModule
    Advertise your mobile site for FREE with AdTwirl

    Comment


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

      Comment

      Working...
      X