Maison >développement back-end >tutoriel php >thinkphp 在 nginx 中配置 rewrite

thinkphp 在 nginx 中配置 rewrite

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBoriginal
2016-07-29 09:04:161151parcourir

<code><span>if</span> (!-e <span>$request_filename</span>)
 {
     <span>#地址作为将参数rewrite到index.php上。</span><span>#rewrite ^/(.*)$ /index.php/$1;</span><span>#若是子目录则使用下面这句,将subdir改成目录名称即可。</span>
     rewrite ^<span>/subdir/</span>(.*)<span>$ </span>/sudir/index.php/<span>$1</span>;
 }</code>
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

以上就介绍了thinkphp 在 nginx 中配置 rewrite,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn