更新时间:2023-02-26 10:54:12
的RewriteCond%{REQUEST_URI} FOOBAR
重写规则。*的index.php
或一些变体。
How would I write a htaccess redirect rule if the URL contains a certain word
e.g. If contains "foobar" then redirect to index.php
Any help greatly appreciated
RewriteCond %{REQUEST_URI} foobar
RewriteRule .* index.php