esoTalk的nginx/apache/lighttpd伪静态

2014-07-13

esoTalk 的config/config.php 中的配置值,及对应产生的url链接:

  esoTalk.urls.friendly



  esoTalk.urls.rewrite



  URL format

  
  
  

  false



  false



  forum.com/?p=member/123

  
  
  

  true



  false



  forum.com/index.php/member/123

  
  
  

  true



  true



  forum.com/member/123

Apache

<code><span class=”tag” style=”color: #000088;”><IfModule</span><span class=”atn” style=”color: #660066;”>mod_rewrite</span><span class=”pln” style=”color: #000000;”>.</span><span class=”atn” style=”color: #660066;”>c</span><span class=”tag” style=”color: #000088;”>></span><span class=”pln” style=”color: #000000;”><br /> RewriteEngine On<br /> RewriteCond %{REQUEST_FILENAME} !-f<br /> RewriteRule ^(.*)$ index.php/$1 [QSA,L]<br /> </span><span class=”tag” style=”color: #000088;”></IfModule></span>

Nginx

location / { try_files $uri $uri/ /index.php/$args; }

Lighttpd

url.rewrite-if-not-file = ( “^(.*)$” => “index.php/$1” )

完美支持esoTalk的主机:http://www.rkidc.net