Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Your rule seems correct, but you're probably not rewriting into the right place. Where's the script you want to rewrite into? It seems you're rewriting into a directory.</p> <p>Perhaps you have additional rewriting rules that need to be applied further, in that case, you should get rid of the <a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriterule" rel="nofollow">last rule</a> [L] flag. Having it there makes mod_rewrite stop applying rules.</p> <p>If you want to check whether your query is being caught or not, you can set <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#RewriteLog" rel="nofollow">RewriteLog</a> and <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#RewriteLogLevel" rel="nofollow">RewriteLogLevel</a> directives to help you.</p> <p>For a quick check, you can also set the [R] flag, and then you'll be able to see in your browser where mod_rewrite is sending you to.</p> <p><strong>Update:</strong> Your original rule works for me with an index.php file in the directory, even, but perhaps you can <a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase" rel="nofollow">try using a RewriteBase</a> to solve this:</p> <pre><code>RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteBase /equipment/AlarisSystem/ RewriteRule /([^/]*)/([^/]*)$ index.php?manu=$1&amp;model=$2 [L] </code></pre> <p>I see no reason for that rule to not work. The original error you're getting is probably related to where you're doing your rewriting. This is from an .htaccess file in the root.</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