我们目前正在使用下面的 .htaccess 代码将 /artist/* 重定向到 /artists/* 效果很好但是,我们需要 URL /artist/ 保持可用而不重定向到 /artists/ .htaccess 可以吗?如果可能,我们希望避免基于 PHP 的重定向。
RewriteRule ^artist/(.*)$ /artists/$1 [R=301,NC,L]
我们目前正在使用下面的 .htaccess 代码将 /artist/* 重定向到 /artists/* 效果很好但是,我们需要 URL /artist/ 保持可用而不重定向到 /artists/ .htaccess 可以吗?如果可能,我们希望避免基于 PHP 的重定向。
RewriteRule ^artist/(.*)$ /artists/$1 [R=301,NC,L]