更新时间:2023-10-21 16:16:04
通过 重定向
你可以为网址只考路径的,或者更具体地说,URL路径prefixes但不为URL查询。但你可以做到这一点 mod_rewrite的:
With Redirect
you can only test for URL paths, or more specifically, URL path prefixes but not for the URL query. But you can do so with mod_rewrite:
RewriteEngine on
RewriteCond %{QUERY_STRING} =option=com_rss&feed=RSS2.0&no_html=1
RewriteRule ^index2\.php$ /something/somethingelse/? [L,R=301]