title: view website are not perfect when using htaccess
body: <p>Is there anything that can help me? I have a problem with the file .htaccess </p>
  
  <blockquote>
    <p>www.test.com/box.php?name=abc-defg&amp;code=xyz</p>
  </blockquote>
  
  <p>to </p>
  
  <blockquote>
    <p>www.test.com/abc-defg/xyz</p>
  </blockquote>
  
  <p>I've tried to results like this: </p>
  
  <blockquote>
    <p>www.test.com/abc-defg-xyz</p>
  </blockquote>
  
  <p>And with code like this</p>
  
  <pre><code>Options -MultiViews
  RewriteEngine On
  
  # STRONG HTACCESS PROTECTION
  &lt;Files ~ "^.*\.([Hh][Tt][Aa])"&gt;
  order allow,deny
  deny from all
  satisfy all
  &lt;/Files&gt;
  
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteRule ^(.+)$ $1.php [L,QSA]
  
  # Index Normal
  #RewriteRule ^(.*)$ $1.php [L]
  
  RewriteRule ^([a-zA-Z_-]+)-([a-zA-Z_-]+)?$ box.php?name=$1&amp;code=$2 [L]
  </code></pre>
  
  <p>I tried to change the code like this</p>
  
  <pre><code>RewriteRule ^ ([a-zA-Z_-] +)-([a-zA-Z_-] +)? $ Box.php?name=$1&amp;code=$2 [L] 
  to 
  RewriteRule ^ ([a-zA-Z_-] +)/([a-zA-Z_-] +)? $ Box.php?name=$1&amp;code=$2 [L]
  </code></pre>
  
  <p>And succeeded, but for the look of the website to be a mess (like can not include css files)</p>
  
  <p>Can anyone see what I'm doing wrong?</p>