Php 使用htaccess在我的域末尾添加斜杠
我的名字是 我想使用.htaccess在域的末尾添加斜杠。它应该是这样的Php 使用htaccess在我的域末尾添加斜杠,php,.htaccess,redirect,Php,.htaccess,Redirect,我的名字是 我想使用.htaccess在域的末尾添加斜杠。它应该是这样的 提前感谢下次请使用谷歌,不要这么快问 答复来源: 在.htaccess中: RewriteCond %{REQUEST_URI} !\.(php|html?|jpg|gif)$ RewriteRule ^(.*)([^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301]
提前感谢下次请使用谷歌,不要这么快问 答复来源: 在.htaccess中:
RewriteCond %{REQUEST_URI} !\.(php|html?|jpg|gif)$
RewriteRule ^(.*)([^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301]