http://xxxx.xxx.com/aaa/1.htm
重定向成
http://xxxx.xxx.com/aaa/1.php
------------------------------------------------------------------
RewriteEngine   on
RewriteBase     /
RewriteRule 1.htm$ 1.php[PT]

解决方案 »

  1.   

    楼上的,不要吧我这个拆开啊,单独写这么简单谁都会,关键是放到一起用怎么写?
    当我重定向了http://xxxx.xxx.com/aaa/这个,访问http://xxxx.xxx.com/aaa/1.htm这个的时候也会被重定向到http://xxxx.xxx.com/123.php这里,郁闷!
      

  2.   

    应该要设置rewritemap你下载一下apache手册吧!我这有例子,但是不让COPY!郁闷
      

  3.   

    我给你发一个手册过去吧!他这不让COPY不行!你自己看看就明白了