# Enable CORS across all your subdomains (replace dev\.local with your domain\.com) # SetEnvIf Origin ^(https?://.+\.dev\.local(?::\d{1,5})?)$ CORS_ALLOW_ORIGIN=$1 # Header append Access-Control-Allow-Origin %{CORS_ALLOW_ORIGIN}e env=CORS_ALLOW_ORIGIN # Header merge Vary "Origin"
# If you have problems with the rewrite rules remove the "#" from the following RewriteBase line # You will also have to change the path to reflect the path to your Chevereto installation # If you are using alias is most likely that you will need this. #RewriteBase /
# 404 images # If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteRule lines # Make sure to apply the correct paths to reflect your current installation RewriteCond %{REQUEST_FILENAME} !-f RewriteRule images/.+\.(gif|jpe?g|png|bmp|webp) - [NC,L,R=404] #RewriteRule images/.+\.(gif|jpe?g|a?png|bmp|webp) content/images/system/default/404.gif [NC,L]