删除重复通过的.htaccess或PHP斜线的网址

编程入门 行业动态 更新时间:2024-10-11 15:14:16
本文介绍了删除重复通过的.htaccess或PHP斜线的网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图从URL中移除重复的斜线。下面的.htaccess规则:

重写规则^(。+)// +(。*)$ $ 1 / $ 2 [L,NC,R = 301]

我在URL不起作用,如下面的:

的http://www.mp7/网站= 69 \\\\\\\\\\\\\\\\

.htaccess文件

#### mod_rewrite的使用 选项​​+的FollowSymLinks RewriteEngine叙述上

解决方案

这是因为IIS服务器,主要几乎可以肯定你的网站是城市化在中的.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:

www.mp7/?site=69\\\\\\\\\\\\\\\\

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斜线的网址

本文发布于:2023-11-27 10:56:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637784.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:斜线   网址   htaccess   PHP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!