ApacheRoNginx:如何翻译重写规则?
这是我的htaccess apache文件ApacheRoNginx:如何翻译重写规则?,apache,ubuntu,nginx,Apache,Ubuntu,Nginx,这是我的htaccess apache文件 我是nginx的新手。。。不知道在何处以及如何设置此选项您可以尝试使用此选项: RewriteEngine On RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)$ index.php?apple=$1&bee=$2 [L] 另外,这是一个非常好的工具,您也可以检查:我感觉到您了,兄弟,我只是使用这个转换器,因为它太令人头痛了。80%的工作是为你做的(有时你还需要调整一下) # nginx con
我是nginx的新手。。。不知道在何处以及如何设置此选项您可以尝试使用此选项:
RewriteEngine On
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)$ index.php?apple=$1&bee=$2 [L]
另外,这是一个非常好的工具,您也可以检查:我感觉到您了,兄弟,我只是使用这个转换器,因为它太令人头痛了。80%的工作是为你做的(有时你还需要调整一下)
# nginx configuration
location / {
rewrite ^/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)$ /index.php?apple=$1&bee=$2 break;
}