• This bug is pretty weird, I have tried almost anything to resolve it.

    So I use the WordPress theme/function/template on a non WordPress site.

    Everything works fine – except my pagination.

    htaccess:

    RewriteRule ^something/page([0-9]+)/$ /something/file.php?page=$1 [NC,L]

    So inside file.php i have this function, which uses the current page to make pagination.

    someFunction(page=1) {
    function...
    }

    file.php:

    $page = $_GET['page'];
    echo $page;
    someFunction($page);

    The echo will show the correct page, but the function will use default of 1.

    If I change the htaccess and include a “-” between the page and number it works fine:

    RewriteRule ^something/page-([0-9]+)/$ /something/file.php?page=$1 [NC,L]

    Can someone help me with this strange mystery ?

    http://ww.wp.xz.cn/plugins/wp-super-cache/

The topic ‘htaccess / php function / super cache bug’ is closed to new replies.