http://www.abc.com/pr/index.php?website=123.com
换成
http://www.abc.com/pr/123.com
这个伪静态我写了半天了,就是成功不了,求好心人士帮助下,我的是wind 服务器,iis。

解决方案 »

  1.   

    RewriteRule pr/([0-9]{1,}\.com) pr/index..php?website=$1 [L]在 pr/index..php 中
    print_r($_GET);

    Array
    (
        [website] => 123.com
    )
      

  2.   

    就是这种,我把www.abc.com/index.php/about
    换成www.abc.com/about
      

  3.   

    IIS没用过 改了规则是否需要重启
    其实rewrite可以调试的 先写简单的 比如把 /123 转到 index.php?website=123.com 然后慢慢加规则
      

  4.   

    rewrite 可以实现的。。
      

  5.   

    http://www.baidu.com/s?wd=iis+rewrite+%E8%A7%84%E5%88%99&ie=utf-8
    总有一个能套上的吧?
      

  6.   


    (1)RewriteCond %{HTTP_URL}                (/|/.htm|/.php|/.html|/[^.]*)$   [I] )
        如果URL是以htm,php,html(模糊匹配),
    (2)RewriteCond %{REQUEST_FILENAME}                      !-f
        URL不是存在文件
    (3)RewriteCond %{REQUEST_FILENAME}                      !-d
        URL不是请求的路径                                
    (4)RewriteRule ^(.*)$                      /index.php/$1                      [U,L]
         将所有请求跳转到index.php,保存原始的URL,之后不在对此进行匹配