Php htaccess获取带有斜杠的页面分页
www.example.com/category/.htaccessPhp htaccess获取带有斜杠的页面分页,php,regex,apache,.htaccess,mod-rewrite,Php,Regex,Apache,.htaccess,Mod Rewrite,www.example.com/category/.htaccess <Files .htaccess> order allow,deny </Files> Options +FollowSymLinks RewriteEngine On RewriteRule ^(\w+)/(.*)$ ./load.php?code=$1 RewriteRule ^(\w+)/*$ ./load.php?code=$1 load.php <?php $code = $_G
<Files .htaccess>
order allow,deny
</Files>
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(\w+)/(.*)$ ./load.php?code=$1
RewriteRule ^(\w+)/*$ ./load.php?code=$1
load.php
<?php
$code = $_GET['code'];
echo $code.'<br/>';
echo $_GET['page'];
?>
www.example.com/category/16598您可以使用:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /test/hta/
RewriteRule ^([0-9]+)(?:/[^/]+)?/?$ load.php?code=$1 [L,QSA]
RewriteRule ^([0-9]+)/[^/]+/([0-9]+)/?$ load.php?code=$1&page=$2 [L,QSA]
RewriteRule ^([0-9]+)/[^/]+/[^/]+/([0-9]+)/?$ load.php?code=$1&page=$2 [L,QSA]
哎呀。。。此链接上的朋友无效:但此url中没有页面。此的内部url应该是什么?仅限其类别。检查此url sihina cinderella是此url中的类别名称2是页数,如hta目录没有任何文件后的第2 3 4 5页谢谢。。。如果可以,请编辑此链接http://www.col3negmovie.com/test/hta/4665/isuru-gineth/page/2 我想知道有什么变化