【发布时间】:2018-04-11 03:10:38
【问题描述】:
我对 Nginx 完全陌生,我已经编写了这个 Apache 代码,我曾经将它放入一个 .htaccess 文件中,但我很难将它转换为 Nginx。我知道将其放入哪个.conf 文件,但不知道如何编写此语法。
请指教。
RewriteRule ^([a-zA-Z0-9]+)$ profile.php?profile_username=$1
RewriteRule ^([a-zA-Z0-9]+)/$ profile.php?profile_username=$1
【问题讨论】:
标签: php apache .htaccess nginx