<div dir="ltr"><div>Good Morning.<br><br><br></div><div>I'm making a site and I want to make the link more usable so I used the Apache's RewriteCond which is the one I more comfortable with. I know that there are a site or two that lets me convert and so I used them, the thing is that it doesn't seem to be working neither of them.<br>
<br></div><div>this is what I have<br>RewriteEngine On<br>RewriteCond %(REQUEST_FILENAME) !-d<br>RewriteCond %(REQUEST_FILENAME) !-f<br>RewriteCond %(REQUEST_FILENAME) !-i<br>RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]<br>
<br></div><div>One gave me this (<a href="http://winginx.com/htaccess">http://winginx.com/htaccess</a>)<br># nginx configuration
<br>location / {
<br> rewrite ^(.+)$ /index.php?url=$1 break;<br>}<br><br></div><div>and the other gave me this (<a href="http://www.anilcetin.com/convert-apache-htaccess-to-nginx/">http://www.anilcetin.com/convert-apache-htaccess-to-nginx/</a>)<br>
if (!-d %(REQUEST_FILENAME)){<br> set $rule_0 1$rule_0;<br>}<br>if (!-f %(REQUEST_FILENAME)){<br> set $rule_0 2$rule_0;<br>}<br>if (%(REQUEST_FILENAME) !~ "-i"){<br> set $rule_0 3$rule_0;<br>}<br>if ($rule_0 = "321"){<br>
rewrite ^/(.+)$ /index.php?url=$1 last;<br>}<br><br></div><div>My configuration is as follows<br><a href="http://pastebin.com/DrA4aAii">http://pastebin.com/DrA4aAii</a><br><br></div><div>My question is... Do I have to make an additional configuration to make it work or do I have to install something extra to make it work?<br>
<br></div><div>I forgot I'm using Debian 7.3 (Wheezy) and my nginx version is still 1.2.1. Don't know if it's important or not but my MySQL client is MariaDB version 5.5.35<br></div><div><br></div><div>Thanks<br>
</div></div>