freayd/a-local-shortener/master/.htaccess - Htaccess File

freayd/a-local-shortener/master/.htaccess

# Shortening service
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^([a-z0-9]{4})$ /shortener.php [L]
</IfModule>
<FilesMatch "^shortener-(config.json|random.rb)(.bak.*)?$">
  Order Allow,Deny
  Deny from all
</FilesMatch>

# Test
<IfModule mod_rewrite.c>
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache