开发者

htaccess redirect mass crazy url to one urls

dear .. i have tried some solution but not work cause i'm dont know much of htaccess i have issue with my php script that make google crawl my web in wrong url:

http://www.xaluan.com/modules.php?name=Horoscopes&file=detail&url=/news/thu-gian/trac-nghiem/2011/03/163906-thu-bay-cua-ban/modules.php%25253fname=News&file=categories&op=newindex&catid=2

correct urls only look similar like this:

http://www.xaluan.com/modules.php?name=Horoscopes&file=detail&url=/news/thu-gian/trac-nghiem/2011/03/163906-thu-bay-cua-ban/

it add one more time to urls this link: mo开发者_运维百科dules.php%25253fname=News&file=categories&op=newindex&catid=2 .. ect

but i have fix this issue by remove all those sripts the other issue about google they come back and comback gain tried to crawl the link not exit .. so i would like redirect all those url ( have var: detail ) to one url

here my one

RedirectMatch ^/(.*)detail(.*)$ http://www.xaluan.com/toolbar/

but it nerver work ?? please help to corect


Try

RewriteEngine On
RewriteRule ^.*detail.*$  http://www.xaluan.com/toolbar/ [L,R=302]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜