假网址自动创建

时间:2013-10-24 10:36:27

标签: wordpress .htaccess redirect http-status-code-404

在Google和Bing中查看我的索引页面时。我在搜索引擎索引列表中找到了以下链接。我在谷歌网站管理员工具中收到404错误。我只安装了wordpress。我没有任何插件或任何其他可能创建这些链接的CMS(Joomla)。 我应该如何删除额外的字符串/值?什么是.htaccess的代码

请忽略网址与字符串/值之间的2个空格。

deemasfashion.com/page/5/ ?Itemid = fnexvhxovxlxhzjb

deemasfashion.com/page/2/ ?start = 117

deemasfashion.com/page/44/ ?wpmp_switcher = mobile

deemasfashion.com/page/56/ ?attachment_id = fqtldnsdj

deemasfashion.com/page/56/ ?attachment_id = pffbvrpggpx

deemasfashion.com/page/13/ ?attachment_id = riohhjoahp

deemasfashion.com/page/51/ ?start = 108

deemasfashion.com/ ?iapolo_com

deemasfashion.com/ ?Itemid = nkuilfzcxvvb

deemasfashion.com/ ?wpmp_switcher = desktop

deemasfashion.com/page/38/ wpmp_switcher

deemasfashion.com/page/7/ ?wpmp_switcher = desktop = mobile

deemasfashion.com/page/7/ ?wpmp_switcher = desktop

deemasfashion.com/page/39/ ?2fou_com

deemasfashion.com/page/22/ ?file

deemasfashion.com/page/56/ ?option = com_content& view = article& id = 94& Itemid = 2

deemasfashion.com/page/36/ ?option = com_content& view = article& id = 62& Itemid = 2

deemasfashion.com/page/21/ ?iframe = true& width = 90%25& height = 90%25

deemasfashion.com/ ?option = com_content& view = category& id = 34%3Alatest-tech-news& Itemid = 60

deemasfashion.com/latest-pakistani-anarkali-pishwas-frock-wear/indian-style-light-golden-anarkali-fashion/ function.session-start

deemasfashion.com/latest-pakistani-anarkali-pishwas-frock-wear/latest-pakistani-outfit-mehndi-green-pishwas-churidar/ function.require

deemasfashion.com/latest-pakistani-bridal-wear/red-front-open-gown-off-white-bridal-wear-lehnga/ function.include

我使用了以下.htaccess代码,但它无效。

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(page/[0-9]+/).+$ /$1? [L,NC,R=301]
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/
</IfModule>

1 个答案:

答案 0 :(得分:2)

可以使用此规则永久重定向大多数错误网址以更正错误网址:

RewriteEngine On

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