删除或从我的网站重定向错误索引网址? [英] Remove or redirect wrong indexed urls from my website?

查看:148
本文介绍了删除或从我的网站重定向错误索引网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是与我的其他问题垃圾邮件和旧网址修改和关系创建假网址全自动的。 是否有任何的身体告诉我,为什么他们正在创造?,我想下面的重定向的URL。我想从我的域名删除多余的字符串或垃圾邮件。我想preFER的.htaccess。我使用这个词preSS。

  deemasfashion.com/ ** CGI-SYS / defaultwebpage.cgi **
deemasfashion.com/页/ 38 / wpmp_switcher
deemasfashion.com/?2fou_com
deemasfashion.com/ **?iapolo_com **
deemasfashion.com/?DUR = 2016年
deemasfashion.com/ **?杜尔= 375 **
deemasfashion.com/?文件
?deemasfashion.com/选项= com_content&放大器;查看=头版和放大器; itemid的= 1
?deemasfashion.com/选项= com_content&放大器;查看=类别和ID = 34:最新-技新闻与itemid的= 60
deemasfashion.com/?www.web3389.com
deemasfashion.com/?wpmp_switcher =桌面
?deemasfashion.com/选项= com_content&放大器;查看=类别和ID = 34%3Alatest科技 - 新闻与ITEMID = 60
 

我的.htaccess code在DOCUMENT_ROOT code是如下:

 < IfModule mod_rewrite.c>
RewriteEngine叙述上

#code。通过anubhava
的RewriteCond%{QUERY_STRING} ^ + $
重写规则^(页/ [0-9] + /?)。* / $ 1〜 [L,NC,R = 301]

#删除编辑帖子
#的RewriteCond%{QUERY_STRING}(?:^ |&安培;)后=([^&功放;] +)[NC]
#重写规则^可湿性粉剂管理员/后\的.php $ / P =%1 [L,NC,R = 301]

#function.session启动不工作
#重写规则^(最新-巴基斯坦ANARKALI-pis​​hwas  - 工装磨损/[^/]+/?).+$ / $ 1〜 [L,NC,R = 301]
#code。通过anubhava

#BEGIN字preSS
的RewriteBase /
重写规则^指数\ .PHP $  -  [L]
的RewriteCond%{} REQUEST_FILENAME!-f
的RewriteCond%{} REQUEST_FILENAME!-d
重写规则。的index.php [L]
的RewriteCond%{HTTP_HOST} ^ WWW \ .deemasfashion \ .COM $

重写规则^ deemasfashion \ .COM /?(.*)$ http://deemasfashion.com/$1 [R = 301,L]
的RewriteCond%{THE_REQUEST} ^ [AZ] {3,9} \ /指数\ html的\ HTTP /
重写规则^指数\ html的$ http://deemasfashion.com/ [R = 301,L]
重写规则^指数\的.htm $ http://deemasfashion.com/ [R = 301,L]
#结束字preSS
< / IfModule>
 

解决方案

任何其他规则之前尝试的情侣在这些规则和指令

 #转发404到主页
的ErrorDocument 404 /

RewriteEngine叙述上

重写规则^(页/ [0-9] +)/.+$ / $ 1〜 [L,NC,R = 301]

的RewriteCond%{QUERY_STRING} ^选项= + $ [NC,OR]
的RewriteCond%{QUERY_STRING} ^ [^ =] + $
重写规则^ $ /? [L,NC,R = 301]
 

This is with the relation of my other questions Spam and Old URLs Modification and Fake URLs created automaticly. Would any body tell me that why they are being created? and I want to redirect below urls. i want to remove extra string or spam from my domain name. i would prefer .htaccess. I am using wordpress.

deemasfashion.com/ **cgi-sys/defaultwebpage.cgi**
deemasfashion.com/ page/38/wpmp_switcher
deemasfashion.com/ ?2fou_com
deemasfashion.com/ **?iapolo_com**
deemasfashion.com/ ?dur=2016 
deemasfashion.com/ **?dur=375**
deemasfashion.com/ ?file
deemasfashion.com/ ?option=com_content&view=frontpage&itemid=1
deemasfashion.com/ ?option=com_content&view=category&id=34:latest-tech- news&itemid=60
deemasfashion.com/ ?www.web3389.com
deemasfashion.com/ ?wpmp_switcher=desktop
deemasfashion.com/ ?option=com_content&view=category&id=34%3Alatest-tech-news&Itemid=60

My .htaccess code in Document_root code is as follows.

<IfModule mod_rewrite.c>
RewriteEngine On

# code by anubhava
RewriteCond %{QUERY_STRING} ^.+$
RewriteRule ^(page/[0-9]+/?).*$ /$1? [L,NC,R=301]

# Remove Edit Post
# RewriteCond %{QUERY_STRING} (?:^|&)post=([^&]+) [NC]
# RewriteRule ^wp-admin/post\.php$ /?p=%1 [L,NC,R=301]

# function.session-start not working
# RewriteRule ^(latest-pakistani-anarkali-pishwas-frock-wear/[^/]+/?).+$ /$1? [L,NC,R=301]
# code by anubhava

# BEGIN WordPress
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTP_HOST} ^www\.deemasfashion\.com$

RewriteRule ^deemasfashion\.com/?(.*)$ http://deemasfashion.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ http://deemasfashion.com/ [R=301,L]
RewriteRule ^index\.htm$ http://deemasfashion.com/ [R=301,L]
# END WordPress
</IfModule>

解决方案

Try couple of these rules and directives at before any other rule:

# forward 404 to home page
ErrorDocument 404 /

RewriteEngine On

RewriteRule ^(page/[0-9]+)/.+$ /$1? [L,NC,R=301]

RewriteCond %{QUERY_STRING} ^option=.+$ [NC,OR]
RewriteCond %{QUERY_STRING} ^[^=]+$
RewriteRule ^$ /? [L,NC,R=301]

这篇关于删除或从我的网站重定向错误索引网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆