itpcc/lite-portfolio/master/img/.htaccess - Htaccess File

itpcc/lite-portfolio/master/img/.htaccess

# if it's a real path, just serve it
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /lite/img/
  RewriteCond  %{REQUEST_FILENAME}  !-f
  RewriteCond  %{REQUEST_FILENAME}  !-d
  RewriteRule ^preview/(.*)$ preview.php?file=$1 [QSA,NC,L]
</IfModule>

#<FilesMatch ".php$">
#    Order Allow,Deny
#    Deny from all
#</FilesMatch>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache