我用的是PHP虚拟主机,怎么把xxxx.com/abc/ 做301跳转到xxxx.com/abc (其实就是去掉那个斜杠)现在httpd.ini文件如下:[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32RewriteCond Host: ^www\.xxxx\.com$
RewriteRule (.*) http\://xxxx\.com$1 [I,RP]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32RewriteCond Host: ^www\.xxxx\.com$
RewriteRule (.*) http\://xxxx\.com$1 [I,RP]
$st=rtrim($str,"/");
echo $st;$str="http://www.xxx.com/abc/";
$st=substr($str,0,-1);
echo $st;
不是删除掉斜杠,是301跳转到不带斜杠的地址上,这个文件httpd.ini怎么改?
RewriteRule (.*) http\://xxxx\.com$1 [I,RP]
RewriteRule (.*)abc/ http\://xxxx\.com/abc [I,RP]