sfhati/cms/master/sfhati/.htaccess
IndexIgnore *
RewriteEngine on
RewriteBase /
#RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteRule ^page/([0-9]+)/(.*)$ http://localhost/sfhati/cms/sfhati/?id=$1
#RewriteCond %{QUERY_STRING} ^p=(.*)
#RewriteRule ^/?product.php$ http://website.com.au/product_%1.php? [L,R=301]
RewriteRule ^admin/(.*)$ http://localhost/sfhati/cms/sfhati/?chng_tpl=login&p=$1
RewriteRule ^admin$ http://localhost/sfhati/cms/sfhati/?chng_tpl=login
RewriteRule ^admin/$ http://localhost/sfhati/cms/sfhati/?chng_tpl=login
ErrorDocument 404 http://localhost/sfhati/cms/sfhati/?id=error404
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} .(gif|jpg|jpeg|png)$
RewriteRule .* template/panel/images/image_not_found.jpg [L]
<Files ~ "(php.ini|.inc|.htaccess|conf.php)$">
order deny,allow
deny from all
</Files>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
# Set up caching on static resources for 1 year based on Google recommendations
<IfModule mod_expires.c>
ExpiresActive On
<FilesMatch ".(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|js|css|gif|jpg|jpeg|png|swf)$">
ExpiresDefault A29030400
</FilesMatch>
</IfModule>
#Block Bad Bots
RewriteCond %{HTTP_USER_AGENT} ^WebBandit [OR]
RewriteCond %{HTTP_USER_AGENT} ^2icommerce [OR]
RewriteCond %{HTTP_USER_AGENT} ^Accoona [OR]
RewriteCond %{HTTP_USER_AGENT} ^ActiveTouristBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^addressendeutshland
RewriteRule ^.* - [F,L]
On Github License
Files