#ERROR
ErrorDocument 500 /resources/error.html
ErrorDocument 400 /resources/error.html
ErrorDocument 401 /resources/error.html
ErrorDocument 403 /resources/error.html
ErrorDocument 404 /resources/error.html?code=404

#MANAGE DIR.LIST
Options +Indexes



#IGNORE THESE FILES IN DIR.LIST
IndexIgnore .. *.php *.htaccess


RewriteEngine On
#RewriteOptions InheritDown

#RewriteCond %{HTTP_USER_AGENT} !BlackBerry [NC]
#RewriteRule DirectoryIndex bbindex.html




#INDEX OPTIONS FOR DIR.LIST
IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble HTMLTable

#HEADER AND FOOTER FOR DIRECTORY LISTING
HeaderName /resources/header.html
ReadmeName /resources/footer.html





#ACCESS HTML FILES WITHOUT ENTERING .HTML IN URL
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]


#NON USED RULES --------------------------------------

#HTTPS FOR ALL PAGES EXCEPT SOME ON BB
#RewriteCond %{HTTPS} off
#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteCond %{HTTP:CF-Visitor} !https
#RewriteCond %{HTTP_USER_AGENT} !BlackBerry [NC]
#RewriteCond %{REQUEST_URI} !^/resources/
#RewriteCond %{REQUEST_URI} !^/radio/
#RewriteCond %{REQUEST_URI} !^/blackberry/
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#REMOVE I=1 STRING IN URL
#RewriteCond %{QUERY_STRING} ^(.*)i=[^&]+(.*)$ [NC]
#RewriteRule ^ %{REQUEST_URI}? [R=301,L,NE]

#BLOGGER PAGES
#RewriteCond %{QUERY_STRING} ^.*$
#RewriteRule ^(p|\d{4})/(.+)$ http://blog.kawiesh.eu.org/$1/$2 [R=301,L]

#REMOVE WWW. SUBDOMAIN
#RewriteRule ^www.krishan.gq/(.*)$ http://krishan.gq/$1 [NC,L]

#REDIRECT A PAGE TO ANOTHER LOCATION
#Redirect 301 /zeep.html /other/zeep.htmlRewriteEngine

#CPANEL
#Redirect 301 /protected/login.html https://x10hosting.com/login