title: Don't work Rewrite Rule Apache
body: <p>I need to create apache rewrite url :
  Replace " ' " and " " symbols with dash
  Replace .aspx with .html</p>
  
  <p>For example</p>
  
  <pre><code>/forum/category/category name 1/category name 2/category name with '/.../{category name N}.aspx
  </code></pre>
  
  <p>to </p>
  
  <pre><code>/category_name_1/category_name_2/category_name_with__/.../{category_name_N}.html
  </code></pre>
  
  <p>I have created rule :</p>
  
  <pre><code>RewriteCond %{THE_REQUEST} (.*)[\'\ ](.*)
  RewriteRule (.*)[\'\ ](.*) $1-$2 [N]
  
  RewriteCond %{THE_REQUEST} (.*)\.aspx
  RewriteRule ^forum/category/(.*)\.aspx$  index.php/$1.html [L]
  </code></pre>
  
  <p>This code is looped . I don't understand why.
  Help me please</p>