<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hello, </span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
need help with convert apache rewrite rules to nginx. My .htaccess:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br clear="all"><div><br></div><div>RewriteEngine on</div>
<div>RewriteBase /</div><div>ErrorDocument 404 /</div><div>RewriteCond %{REQUEST_FILENAME} !-f</div><div>RewriteCond %{REQUEST_FILENAME} !-d</div><div>RewriteRule ^naujienos+ news.php/$1 [L]</div><div>RewriteRule ^skelbimai/?$ index.php?p=20 [nc]</div>
<div>RewriteRule ^skelbimai?$ index.php?p=20 [nc]</div><div>RewriteRule ^reklama_svetaineje/?$ index.php?p=25 [nc]</div><div>RewriteRule ^reklama_svetaineje?$ index.php?p=25 [nc]</div><div>RewriteRule ^reklama_laikrastyje/?$ index.php?p=15 [nc]</div>
<div>RewriteRule ^reklama_laikrastyje?$ index.php?p=15 [nc]</div><div>RewriteRule ^prenumeratos_uzsakymas/?$ /prenumerata.php [nc]</div><div>RewriteRule ^prenumeratos_uzsakymas?$ /prenumerata.php [nc]</div>
<div>RewriteRule ^newprenum/?$ /pren_all.php [nc]</div><div>RewriteRule ^newprenum?$ /pren_all.php [nc]</div><div>RewriteRule ^negaunantiems_laiku/?$ index.php?p=24 [nc]</div><div>RewriteRule ^negaunantiems_laiku?$ index.php?p=24 [nc]</div>
<div>RewriteRule ^naujienos/p(.*)$ /news.php?pg=$1 [nc]</div><div>RewriteRule ^naujienos/?$ /news.php [nc]</div><div>RewriteRule ^naujienos?$ /news.php [nc]</div><div>RewriteRule ^lics/?$ /Lics.php [nc]</div>
<div>RewriteRule ^lics?$ /Lics.php [nc]</div><div>RewriteRule ^kontaktai/?$ index.php?p=18 [nc]</div><div>RewriteRule ^kontaktai?$ index.php?p=18 [nc]</div><div>RewriteRule ^atsisiusk_dienrasti/?$ /newspaper.php [nc]</div>
<div>RewriteRule ^atsisiusk_dienrasti?$ /newspaper.php [nc]</div><div>RewriteRule ^apie_leidejus/?$ /leidejai.php [nc]</div><div>RewriteRule ^apie_leidejus?$ /leidejai.php [nc]</div><div>RewriteRule ^akcijos/?$ index.php?p=13 [nc]</div>
<div>RewriteRule ^akcijos?$ index.php?p=13 [nc]</div></div><div><br></div><br>