我想重定向一个路径和该路径下的所有子文件夹。
例如,我想要匹配URL
https://www.joka.de/produktfinder
https://www.joka.de/produktfinder/foo
https://www.joka.de/produktfinder/foo/bar/test.html
以下代码仅适用于/productfinder,但不适用于productfinder/Test.
RewriteCond %{HTTP_HOST} ^.*joka.*$ [NC]
RewriteCond %{REQUEST_URI} ^/produktfinder* [NC]
RewriteRule ^(.*)$ https://www.jordan-kassel.de/ausbildung.html [L,R=301]发布于 2019-08-23 15:22:19
我想这可能是解决方案
RewriteCond %{HTTP_HOST} ^.*joka.*$ [NC]
RewriteCond %{REQUEST_URI} ^/produktfinder(.*) [NC]
RewriteRule ^(.*)$ https://www.jordan-kassel.de/ausbildung.html [L,R=301]https://stackoverflow.com/questions/57621236
复制相似问题