MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.117.141.69
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /../var/softaculous/eyeos/../pyro/../joomla310/../laravel/../snews/../pyro/../koken/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //../var/softaculous/eyeos/../pyro/../joomla310/../laravel/../snews/../pyro/../koken/.htaccess
## Uncomment the following block to force SSL when accessing /admin
# <IfModule mod_rewrite.c>
#	RewriteEngine On
# 	RewriteCond %{REQUEST_URI} /admin/
# 	RewriteCond %{SERVER_PORT} 80
# 	RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# </IfModule>

####### DO NOT EDIT BELOW THIS LINE ########

#MARK#######################################
########	KOKEN .htaccess rules	########
############################################

## Make sure settings.css.lens is rendered as CSS
AddType text/css .lens

## SVG MIME type as some servers don't have it
AddType image/svg+xml .svg

## UTF-8 encoding for everything
AddDefaultCharset utf-8

DirectoryIndex index.php index.html

## Enable gzip.
## Highly recommended as it will increase speed for
## both the console and your published site.
<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/json application/javascript application/x-javascript
</IfModule>
## END gzip

## Rewrite Rules (Pretty URLs)
## These rules remove index.php/ from your published site links
## and also speed up the serving of cached images.
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase [[_relativeurl]]

	# Pass images requests back to PHP if they do not exist
	RewriteCond %{REQUEST_METHOD} =GET
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_URI} [[relativeurl]]/storage/cache/images(/(([0-9]{3}/[0-9]{3})|custom)/.*)$
	RewriteRule . [[relativeurl]]/i.php?path=%1 [L]

	# Pass albums requests back to PHP if they do not exist
	RewriteCond %{REQUEST_METHOD} =GET
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_URI} [[relativeurl]]/storage/cache/albums(/([0-9]{3}/[0-9]{3})/.*)$
	RewriteRule . a.php?path=%1 [L]

	# Catch root requests (pjax)
	RewriteCond %{REQUEST_METHOD} =GET
	RewriteCond %{REQUEST_URI} ^[[relativeurl]]/?$
	RewriteCond %{QUERY_STRING} _pjax=
	RewriteCond %{DOCUMENT_ROOT}[[relativeurl]]/storage/cache/site[[relativeurl]]/index/cache.phtml -f
	RewriteRule .* [[relativeurl]]/storage/cache/site[[relativeurl]]/index/cache.phtml [L]

	# Catch root requests
	RewriteCond %{REQUEST_METHOD} =GET
	RewriteCond %{REQUEST_URI} ^[[relativeurl]]/?$
	RewriteCond %{QUERY_STRING} !_pjax=
	RewriteCond %{DOCUMENT_ROOT}[[relativeurl]]/storage/cache/site[[relativeurl]]/index/cache.html -f
	RewriteRule .* [[relativeurl]]/storage/cache/site[[relativeurl]]/index/cache.html [L]

	# Catch site requests (pjax)
	RewriteCond %{REQUEST_METHOD} =GET
	RewriteCond %{QUERY_STRING} _pjax=
	RewriteCond %{DOCUMENT_ROOT}[[relativeurl]]/storage/cache/site%{REQUEST_URI}cache.phtml -f
	RewriteRule . [[relativeurl]]/storage/cache/site%{REQUEST_URI}cache.phtml [L]

	# Catch site requests
	RewriteCond %{REQUEST_METHOD} =GET
	RewriteCond %{QUERY_STRING} !_pjax=
	RewriteCond %{HTTP_COOKIE} !share_to_tumblr=
	RewriteCond %{DOCUMENT_ROOT}[[relativeurl]]/storage/cache/site%{REQUEST_URI}cache.html -f
	RewriteRule . [[relativeurl]]/storage/cache/site%{REQUEST_URI}cache.html [L]

	# CSS / RSS caching
	RewriteCond %{REQUEST_METHOD} =GET
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{DOCUMENT_ROOT}[[relativeurl]]/storage/cache/site%{REQUEST_URI} -f
	RewriteRule . [[relativeurl]]/storage/cache/site%{REQUEST_URI} [L]

	# Rewrite any old URLs that still use index.php?/this/that syntax
	RewriteCond %{QUERY_STRING} ^/(.*)
	RewriteRule ^index.php %1? [R,L]

	# Rewrite any old URLs that still use index.php/this/that syntax
	RewriteRule ^index.php/(.*)$ $1 [R,L]

	# Catch root requests
	RewriteRule ^(index.php)?$ [[relativeurl]]/app/site/site.php?url=/ [L,QSA]

	# Do not enable path rewriting for files that exist
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond	%{REQUEST_FILENAME} !favicon.ico

	# For requests that are not actual files
	# rewrite to index.php?/PATH
	RewriteRule ^(.*)$ [[relativeurl]]/app/site/site.php?url=/$1 [L,QSA]
</IfModule>

## This ruleset ensures core Koken JS and CSS are cached
## for 1 year. These files are always timestamped in new releases,
## so it is safe to cache them for long periods of time.
<IfModule mod_expires.c>
	ExpiresActive On
	# Set default to 0 so .php/API requests are not cached
	ExpiresDefault A0

	# Do not cache MP4s, as Chrome and others tend to fail on first playback
	<FilesMatch "\.mp4$">
		<IfModule mod_headers.c>
			ExpiresActive Off
			Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
			Header set Pragma "no-cache"
		</IfModule>
	</FilesMatch>

	# Console javascript and CSS is timestamped and can be aggressively cached
	<FilesMatch "console_.*\.(js|css)$">
		ExpiresByType text/javascript "access plus 1 year"
		ExpiresByType application/javascript "access plus 1 year"
		ExpiresByType application/x-javascript "access plus 1 year"
		ExpiresByType text/css "access plus 1 year"
	</FilesMatch>

	# Cached images are timestamped and can be aggressively cached
	<FilesMatch "\.\d{9,10}\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG)$">
		ExpiresDefault "access plus 1 year"
	</FilesMatch>
</IfModule>

## End Rewrite Rules

############################################
#######	 END KOKEN .htaccess rules  ########
############################################

MMCT - 2023