1

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

请忽略 url 和字符串/值之间的 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>
4

1 回答 1

2

大多数不良 URL 可以通过以下规则永久重定向到更正一个:

RewriteEngine On

RewriteCond %{QUERY_STRING} ^.+$
RewriteRule ^(page/[0-9]+/).*$ /$1? [L,NC,R=301]
于 2013-10-24T10:39:45.233 回答