Преобразование правил перезаписи HTACCESS в NginxApache

Гость
Преобразование правил перезаписи HTACCESS в Nginx

Сообщение Гость »


I have the following rewrite rule in a .htaccess file. How can I get this to work in Nginx?

RewriteRule ^profile/([^/\.]+)/?$ profile.php?id=$1 [L] Tried this and it didn't work:
rewrite profile.php?id=$1 ^profile/([0-9]+)/?$ break;

Источник: https://stackoverflow.com/questions/781 ... s-to-nginx

Вернуться в «Apache»