ݷӦα̬ļվĿ¼
α̬̳̼
http://bbs.mtceo.net/thread-6-1-1.html

--------------------Apache---------------------
 1httpd.confļмmod_rewrite.soģ
 2AllowOverride None NoneΪ All
 3ȷURL_MODELΪ2
 4url_rewriteļµ.htaccessļŵĿ¼
 

<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
 </IfModule>
 --------------------IIS---------------------
 ķ֧ISAPI_RewriteĻhttpd.iniļ
 httpd.iniurl_rewriteļ
 ߰汾IISweb.Config,rewriteڵ
 ݼurl_rewriteļµweb.Config
 

--------------------Nginx---------------------
 Nginx.confת
 ݼurl_rewriteļµNginx.conf
 
if (!-e $request_filename) {
    rewrite  ^(.*)$  /index.php?s=$1  last;
 break;
 
ڶУiisα̬ǧٹ֣ҲͬͬiisĹ򣬸λվԲοӣ
 
[ISAPI_Rewrite]
 # 3600 = 1 hour
 CacheClockRate 3600
 RepeatLimit 32
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 #󲿷iisһͿ
 RewriteRule (?!\/dh)(?!\/phpMyAdmin)(?!\/admin.php)(?!\/index.php)(?!\/Public)(?!\/data)(.*)$ /index\.php/$1 [I]
 
#iisĹʵα̬
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^/$ /index\.php [L]
 RewriteRule ^/(.*)\.php$ /$1\.php [L]
 RewriteRule ^/admin/(.*)$ /admin/$1 [L]
 RewriteRule ^/index/(.*)$ /index/$1 [L]
 RewriteRule ^/data/(.*)$ /data/$1 [L]
 RewriteRule ^/includes/(.*)$ /includes/$1 [L]
 RewriteRule ^/install/(.*)$ /install/$1 [L]
 RewriteRule ^/Public/(.*)$ /Public/$1 [L]
 RewriteRule ^/install\.php/(.*)$ /install\.php/$1 [L]
 RewriteRule ^/index\.php(.*)$ /index\.php$1 [L]
 RewriteRule ^/bdunion\.txt$ /bdunion\.txt [L]
 RewriteRule ^/admin\.php\?(.*)$ /admin\.php\?$1 [L]
 RewriteRule ^/(.*)$ /index\.php/$1 [L]
 