简体   繁体   中英

Htaccess rewrite rules for pagination

What can be problem with this rules? If i open page without pagination all is working fine

RewriteRule ^videos/tagged/([A-Za-z0-9-\s]+)/$ index.php?mode=tags&type=videos&keyword=$1 [L]

But with pagination does not work, back me 404 error when i click to page2.html, query is working fine, i can access page without this rewriterule

RewriteRule ^videos/tagged/([A-Za-z0-9-\s]+)/page(.*).html$ index.php?mode=tags&type=videos&keyword=$1&page=$2 [L]

Try this:

RewriteEngine On 
RewriteRule ^videos/tagged/([A-Za-z0-9-\s]+)/page([0-9]+).html$ index.php?mode=tags&type=videos&keyword=$1&page=$2 [L]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM