Hello, <br><div class="gmail_quote"><div>need help with convert apache rewrite rules to nginx. My .htaccess:</div><div><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><br></div>
</div>
</div><br><br clear="all"><div><br></div>-- <br><span style="font-size:10pt">-- <br>pagarbiai<br> <br>hostname _ Nerijus Skaržauskas<br>Kompetencija:<br>_ tarnybinių stočių konfigūravimas ir priežiūra;<br>_ sudėtingi IT sprendimai;<br>
_ kompiuterių remontas ir priežiūra<br>mobile _ +370 655 75577<br>e-mail _ <a href="mailto:nerijus@insecure.lt" target="_blank"><span style="color:blue">nerijus@insecure.lt</span></a><br>skype _ nerijus.skarzauskas<br>jabber _ <a href="mailto:nerka@akl.lt" target="_blank"><span style="color:blue">nerka@akl.lt</span></a><br>
... |</span><br>