Преобразование правил перезаписи HTACCESS в Nginx ⇐ Apache
-
Гость
Преобразование правил перезаписи 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
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
Мобильная версия