title: .htaccess how can I implement both "vanity url" and "no extension"
body: <p>I'm using htaccess from stackoverflow.com/q/8583856 -  </p>
  
  <pre><code>RewriteEngine on
  # Unless directory, remove trailing slash
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([^/]+)/$ http://www.mysite.com/$1 [R=301,L]
  
  # Redirect external .php requests to extensionless url
  RewriteCond %{THE_REQUEST} ^(.+)\.php([#?][^\ ]*)?\ HTTP/
  RewriteRule ^(.+)\.php$ http://www.mysite.com/$1 [R=301,L]
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php [L]
  
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule .* - [L]
  RewriteRule ^(.*)$ http://www.mysite.com/profile.php?u=$1 [NC]
  
  Everything works great unless I type www.mysite.com into address bar -    
  returns mysite.com/profile?u=index.html.var  
  which errors "Unknown column index.html.var in where clause"  
  </code></pre>
  
  <p>Anyone know how to get this to go to mysite.com/index instead?  </p>