删除重复通过的.htaccess或PHP斜线的网址 [英] Removing duplicate slashes in URL via .htaccess or PHP
问题描述
我试图从URL中移除重复的斜线。下面的.htaccess规则:
重写规则^(。+)// +(。*)$ $ 1 / $ 2 [L,NC,R = 301]
我在URL不起作用,如下面的:
的http://www.mp7.org/网站= 69.com \\\\\\\\\\\\\\\\
.htaccess文件
#### mod_rewrite的使用
选项+的FollowSymLinks
RewriteEngine叙述上
这是因为IIS服务器,主要几乎可以肯定你的网站是城市化在.net中的.asp或。 ASPX你需要投入服务的一个缩影脚本,当您的服务器的HTTP或HTTPS要求必须LCASE(URL)。如果没有大量的页面,你可以重命名都在小写,修改网页内的所有链接到小写并在谷歌网站管理员工具的吸引力网址删除请求后。
如何删除重复的URL
I'm trying to remove duplicate slashes from URLs. The following .htaccess rule:
RewriteRule ^(.+)//+(.*)$ $1/$2 [L,NC,R=301]
do NOT work for me on a URL such as the following:
http://www.mp7.org/?site=69.com\\\\\\\\\\\\\\\\
The .htaccess file
#### mod_rewrite in use
Options +FollowSymlinks
RewriteEngine On
This is because of IIS server, and mainly almost certainly your site is urbanized in .Net .asp or . aspx You need to put into service one miniature script, when your server be given http or https demand it must Lcase(URL). If there are not a lot of pages, you can rename all within lowercase, modify all inner linking of WebPages to lowercase and after that appeal URL removal request in Google webmaster tools.
how to remove duplicate urls
这篇关于删除重复通过的.htaccess或PHP斜线的网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!