这工作正常:
https://example.com/2023/not-the-dinner-day
使用以下RewiteRule
RewriteRule ^(\d{4})/not-the-dinner-day/?$ archive/reports/$1/ntdd.php [NC,L]
我想获取这个新网址:
https://example.com/2023/not-the-dinner-day-photographs
来自这个旧网址
https://example.com/archive/galleries/2023/20230204_ntdd/
我尝试过各种方法,包括:
RewriteEngine On
RewriteRule ^(\d{4})/not-the-dinner-day-photographs/?$ archive/galleries/$1/$2_ntdd/ [NC,L]
匹配最后一个文件夹20230204_ntdd似乎给我带来了问题,重写模块已打开。
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号