Forum Moderators: phranque
RewriteRule ^my-silly-new-content-([^.]+).html$ my-silly-new-content.html?page=$1
In .htaccess -
whenever anything is added
include "pagination.class.php";
$p = new pagination;
// Items per page
$p->perPage = 120;
// Pagination left from current
$p->paginationLeft = 3;
// Pagination right from current
$p->paginationRight = 3;
// Link href
// $p->path = '?page=%d'; // or $p->path = 'example/%d/';
$p->path = '/feeds/my-silly-new-content-%d.html';
// Paginaion appearance
$p->appearance =
array(
'nav_prev' => '<a href="%s" class="prev"><span>prev</span></a>',
'nav_number_link' => '<a href="%s"><span>%d</span></a>',
'nav_number' => '<a href="javascript:;" class="active"><span>%d</span></a>',
'nav_more' => '<a href="javascript:;" class="more"><span>...</span></a>',
'nav_next' => '<a href="%s" class="next"><span>next</span></a>'
);
$count = $db->get_one('SELECT count(*) as cnt FROM feeds');
// Items count
$p->setCount(1000);
// Current page
if(isset($_GET['page'])){
$p->setStart($_GET['page']);
}
both instances worked whenever any letter / word was added into the mix. But numericals still passed through.
RewriteRule ^dir/dir2/chap0+(\d+\.html) http://example.com/dir/dir2/chap$1 [R=301,L]