去掉斜杠的301跳转怎么写?
我用的是PHP虚拟主机,怎么把xxxx.com/abc/ 做301跳转到xxxx.com/abc (其实就是去掉那个斜杠)
现在httpd.ini文件如下:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteCond Host: ^www\.xxxx\.com$
RewriteRule (.*) http\://xxxx\.com$1 [I,RP]
[解决办法]
RewriteRule (.*)/ http\://xxxx\.com$1 [I,RP]
RewriteRule (.*) http\://xxxx\.com$1 [I,RP]