amiral-mc/amcwm/master/demo/.htaccess - Htaccess File

amiral-mc/amcwm/master/demo/.htaccess

allow from all
RewriteEngine on

#non-www to www
#RewriteCond %{HTTP_HOST} ^mydomain.com 
#RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]

# if a directory or a file exists, use it directly

RewriteCond %{REQUEST_URI} !^multimedia/default
#RewriteRule ^multimedia/.*.([0-9]*).(jpg|png|gif) images.php?file=$0&f=$1.$2 [L]
#RewriteRule ^multimedia/.*(jpg|png|gif)$ images.php?file=$0 [L]
RewriteRule ^(multimedia)/(.*)/(.*).([0-9]*).(jpg|png|gif) $1/$2/$4.$5 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule ^(.)* index.php [L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, REQUEST_URI

Comments

Apache