title: Vanity URL not working
body: <p>I am using htaccess to try and rewrite a url.  I have tried about 10 versions of the code and examples but nothing makes any change.  I know mod_rewrite is working because it is adding www to the url, but the vanity URL won't work.</p>
  
  <pre><code>RewriteRule ^franchise/([0-9]+)/?$ franchise-information.php?franchiseid=$1    [NC,L]    # Handle product requests
  </code></pre>
  
  <p>Here is the .htaccess file:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine on
    RewriteCond %{HTTPS} !=on
    RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
    RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    RewriteRule ^franchise/([0-9]*?)/$ franchise-information.php?franchiseid=$1 [NC,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>And here is the URL: </p>
  
  <pre><code>http://www.playballkids.com/franchise-information.php?franchiseid=162
  </code></pre>