我想删除的1斜线,只有1网址我该怎么做301重定向到特定的位置
这个片段将删除所有
# Remove the trailing slash
RewriteCond %{HTTP_HOST} ^(www.)?example\.com$ [NC]
RewriteRule ^(.+)/$ http://www.example.com/$1 [R=301,L]
,但我只是想改变
example.com/changeme/
到
example.com/changeme
任何想法如何改变这个htaccess我只能做到一个
什么^(+/changeme之间的差异。 )和^(changeme) – Trace
感谢您的问题,我刚刚意识到我的答案不能正确,所以我正在更新它。 – Gerry