title: .htaccess mod rewrite for 10 letter alpha numeric "word"
body: <p>I am trying to redirect people who add an Amazon ASIN (10 letters/numbers) to the end of my domain...</p>
  
  <p>mydomain.com</p>
  
  <p>I want them to format their url's like so:
  mydomain.com/B008XCFLTM</p>
  
  <p>Someone gave me: </p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^[a-zA-Z0-9]{10}/(.*) /check.php?asin=$1 [L,R=301]
  </code></pre>
  
  <p>this works, only if they put the trailing slash like so:</p>
  
  <p>mydomain.com/B008XCFLTM/</p>
  
  <p>The following (removing the slash):</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^[a-zA-Z0-9]{10}(.*) /check.php?asin=$1 [L,R=301]
  </code></pre>
  
  <p>Kind of works.... I thought it worked but then any file above 10 characters would be caught by the Rewrite rule and sent to check.php.</p>
  
  <p>Is there any way to limit it to just 10 characters?  So if anything after mydomain.com/ is 9 letters or less or 11 letters or less, it will work normally... if it's 10 characters only, have it redirect to check.php?</p>
  
  <p>Thanks for the insight.</p>