要求将 类似于 http://wwww.adna.com/asdasd/9889/index.html?from=9292 
跳转到  http://wwww.adna.com/asdasd/9889/index.html 这个该怎么写呢? 

解决方案 »

  1.   

    RewriteEngine onRewriteBase /# hotel
    RewriteRule ^index_(.*)$ index.html?from=$1 [NC]你这样写9292  的值就丢了,你确认码
      

  2.   

    其实我就是想去掉后面的参数 from=hahhss 其它的没所谓
      

  3.   

    如果是这样呢?
    要求将 类似于 http://wwww.adna.com/asdasd/9889/?from=9292  
    跳转到 http://wwww.adna.com/asdasd/9889/ 
      

  4.   

    是同一个  但是 google收录了一些 不带 index.html的页面 还有 
    RewriteEngine onRewriteBase /# hotel
    RewriteRule ^index_(.*)$ index.html?from=$1 [NC] 
    这个好像起不到效果
      

  5.   

    这就是你的问题了
    1、web 服务器中并没有应用了处理 html 所带参数,你要加上参数做什么?
    2、形如 http://wwww.adna.com/asdasd/9889/index.html?from=9292 
    这样的不被 google 收录,是因为他看上去像动态页面
    这用重写是改变不了的!
      

  6.   

    关键是这样的  http://wwww.adna.com/asdasd/9889/index.html?from=9292  
     已经被 Google收录了 我现在想改变的是   http://wwww.adna.com/asdasd/9889/index.html?from=9292  
     能到 301 到  http://wwww.adna.com/asdasd/9889/index.html