|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/thr33cd/ |
Upload File : |
#################################################################################
#
#index.php is the index. make it explicit and redirect requests for index.html
DirectoryIndex index.php
redirect 301 /index.html http://3cd.com
#
#################################################################################
#################################################################################
#
#error pages
ErrorDocument 404 /error/error4__.html
ErrorDocument 403 /error/error4__.html
ErrorDocument 500 /error/error500.html
#
#################################################################################
#################################################################################
#
#i don't like file extensions. remove .php, .html, etc
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} (.*)/$
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule (.*)/$ $1.html [L]
RewriteCond %{REQUEST_URI} (.*)/$
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule (.*)/$ $1.php [L]
RewriteCond %{REQUEST_URI} (.*)/$
RewriteCond %{REQUEST_FILENAME}\.cgi -f
RewriteRule (.*)/$ $1.cgi [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f [OR]
RewriteCond %{REQUEST_FILENAME}\.php -f [OR]
RewriteCond %{REQUEST_FILENAME}\.cgi -f
RewriteRule .* %{REQUEST_FILENAME}/ [L]
#
#################################################################################
#################################################################################
#
#only allow access to unity files from onsite
RewriteCond %{HTTP_REFERER} !^http://(www\.)?3cd.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?3cd.com(/)?.*$ [NC]
RewriteRule .*\.(unity3d)$ http://3cd.com [R,NC]
#
#################################################################################