title: URL Shortener - .htaccess update
body: <p>A while ago I made a little URL shortener which basically just redirects the user to the 'long url'.</p>
  
  <p>The script that does as such is -cleverly- named shorter.php.</p>
  
  <p>So, my problem:</p>
  
  <p>When I first made the shortener, I made an .htaccess file like this:</p>
  
  <pre><code>RewriteRule ^s/(.*)$ shorter.php?u=$1 [NC,L]
  </code></pre>
  
  <p>Which allowed me to rewrite: doma.in/s/VAR to doma.in/shorter.php?u=VAR, which in turn redirects to the page that is linked to the VAR.</p>
  
  <p>Last week I realised I could also make my URL shortener like this: dome.in/VAR</p>
  
  <p>This can also be done in .htaccess, as far as I know.</p>
  
  <p>The problem comes for me when I still have to support the URL with 's/' in between 'doma.in' &amp; 'VAR'.</p>
  
  <p>Help appreciated, thanks :).</p>