【发布时间】:2013-09-03 15:48:24
【问题描述】:
我正在使用 .htaccess 生成漂亮的链接,我需要在斜杠上包含 or
例如
domain.com/page/12/a/
和
domain.com/page/12/a 可以工作
我尝试过的:
RewriteRule ^page/([^/]*)/([^/]*)(/?)([^/]*) index.php?do=atoz&category=$1&letter=$2&type=$3 [L]
【问题讨论】:
标签: php regex apache .htaccess