为什么你没有用 url 重写隐去 index.php 呢?

解决方案 »

  1.   

    <IfModule mod_rewrite.c>
       RewriteEngine on
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule ^(.*)$ index.php/$1 
    </IfModule>
    把这代码放到你thinkphp根目录下的.htaccess中 重写下url 
      

  2.   

    只要你的 url 重写生效
    /thinkphp/Member/index/p/3.htm
    就会重写为
    /thinkphp/index.php/Member/index/p/3.html
    所以有没有 index.php 都是一样的当然,如果你的重写没有生效,那么就不对了
    那么首次进入时的 url 又是什么样子的呢?如果重写时生效的,但
    thinkphp/Member/index/p/3.htm
    是真实存在的话,那就是你的问题了:生成的静态文件与动态发生冲突了
      

  3.   

    搞定了,初次用thinkphp 做东西》。。