Note that there are some explanatory texts on larger screens.

plurals
  1. POMod_rewrite uses only some rules
    text
    copied!<p>I have this htaccess:</p> <pre><code>RewriteEngine On RewriteRule ^tuote\.php/([^/]+) tuote.php?data=$1 [L] RewriteRule ^ryhma\.php/([^/]+) ryhma.php?data=$1 [L] RewriteRule ostoskori ostoskori.php [L] RewriteRule ^lisaa\/([^/]+) ostoskori.php?a=4&amp;data=$1 [L,NC] RewriteRule ^lisaa-ostoskoriin/([^/]+) ostoskori.php?a=1&amp;data=$1 [L,NC] RewriteRule tyhjenna-ostoskori ostoskori.php?a=2 RewriteRule ^vahenna\/([^/]+) ostoskori.php?a=3&amp;data=$1 [L,NC] RewriteRule ^poista\/([^/]+) ostoskori.php?a=5&amp;data=$1 [L,NC] </code></pre> <p>When I access <code>lisaa-ostoskoriin</code>, it doesn´t work and seems to connect <code>ostoskori.php</code> but it should connect <code>ostoskori.php?a=1&amp;data=$1</code>.</p> <p>When I access <code>tyhjenna-ostoskori</code>, it doesn´t either work and seems to connect <code>ostoskori.php</code> but it should <code>ostoskori.php?a=2</code>.</p> <p>All others will work, but these are only that do not work. How should I modify the code to make it work better?</p> <p><strong>URL examples</strong><br> <a href="http://somesite.com/tuote/1-Product-name" rel="nofollow">http://somesite.com/tuote/1-Product-name</a> --> <code>tuote.php?data=1-Product-name</code> <a href="http://somesite.com/ryhma/1-Category-name" rel="nofollow">http://somesite.com/ryhma/1-Category-name</a> --> <code>ryhma.php?data=1-Category-name</code> <a href="http://somesite.com/ostoskori" rel="nofollow">http://somesite.com/ostoskori</a> --> <code>ostoskori.php</code><br> <a href="http://somesite.com/lisaa/1-Product-name" rel="nofollow">http://somesite.com/lisaa/1-Product-name</a> --> <code>ostoskori.php?a=4&amp;data=1-Product-name</code> <a href="http://somesite.com/lisaa-ostoskoriin/1-Product-name" rel="nofollow">http://somesite.com/lisaa-ostoskoriin/1-Product-name</a> --> <code>ostoskori.php?a=1&amp;data=1-Product-name</code></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload