RudraXLibrary/RudraXLibrary.github.io/master/test/.htaccess - Htaccess File

RudraXLibrary/RudraXLibrary.github.io/master/test/.htaccess

RewriteEngine On

#RewriteCond %{REQUEST_FILENAME} - [F]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^static/pri/1/(.*) index.php?q=static/pri/1/$1 [L,QSA]

RewriteCond %{HTTP_REFERER} !^http://(www.)?localhost[NC] 
RewriteCond %{HTTP_REFERER} !^http://(www.)?localhost.*$ [NC] 
RewriteRule ^static/pub/(.*).(.*)$ - [F]
RewriteRule ^static/pub/(.*) ../static/pub/$1 [L]

RewriteRule ^lib/(.*).(css.php|js.php) ../build/lib/$1.$2 [L]
RewriteRule ^resources/(.*).(css.php|js.php) ../build/resources/$1.$2 [L]

RewriteRule ^lib/(.*).(css|js|txt|jpeg|jpg|png|gif|eot|svg|ttf|woff|html) ../lib/$1.$2 [L]
RewriteRule ^resources/(.*).(css|js|txt|jpeg|jpg|png|gif|eot|svg|ttf|woff|html) ../resources/$1.$2 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

<ifModule mod_headers.c>
# Turn on Expires and set default expires to 3 days
ExpiresActive On
ExpiresDefault A259200
 
# Set up caching on media files for 1 month
<filesMatch ".(ico|gif|jpg|jpeg|png|flv|pdf|swf|mov|mp3|wmv|ppt)$">
ExpiresDefault A2419200
Header append Cache-Control "public"
</filesMatch>
 
# Set up 2 Hour caching on commonly updated files
<filesMatch ".(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "private, must-revalidate"
</filesMatch>
 
# Force no caching for dynamic files
<filesMatch ".(php|cgi|pl|htm)$">
ExpiresDefault A0
Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
Header set Pragma "no-cache"
</filesMatch>
</ifModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_REFERER, no-cache, Pragma, REQUEST_FILENAME, static

Comments

Apache