Hello!
I'm working on a url shortner script. It's located at http://mini.ample.se/ and the short URL will look something like http://mini.ample.se/%5Babc..%5D
my .httaccess file looks like this
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteOptions MaxRedirects=1
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-l
   RewriteRule ^([a-zA-Z0-9_-]+)$ redirect.php?alias=$1 [L]
</IfModule>
when I try it out with ex. mini.ample.se/a I get "No input file specified" error. I know it got something to do with the redirecting and not finding my redirect.php file but I'm not sure what.
redirect.php file looks like this
$alias = trim(mysql_real_escape_string($_GET['alias']));
if (!preg_match("/^[a-zA-Z0-9_-]+$/", $alias)) {
  header("Location: ".SITE_URL, true, 301);
  exit();
}
if (($url = get_url($alias))) {
    header("Location: $url", true, 301);
    exit();
}
header("Location: ".SITE_URL, true, 301);
Thanks!