Apache
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ weixin/index.php/$1 [QSA,PT,L]
</IfModule>
Nginx
location / {
index index.html index.htm index.php;if (!-e $request_filename) {
rewrite ^/(.*)$ /ci/index.php?$1 last;
}
}