-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
DCI Student
committed
Sep 12, 2024
1 parent
1f63a56
commit 3d32b3e
Showing
6,769 changed files
with
64,914 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# User-Agent kısıtlaması | ||
RewriteCond %{HTTP_USER_AGENT} libwww-perl.* | ||
RewriteRule .* - [F,L] | ||
|
||
# Belirli dosya türleri için önbellekleme | ||
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$"> | ||
Header set Cache-Control "max-age=2628000, public" | ||
</filesMatch> | ||
|
||
# Dizin listelemeyi devre dışı bırakma | ||
Options -Indexes | ||
|
||
# Gzip sıkıştırma | ||
<IfModule mod_deflate.c> | ||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript | ||
</IfModule> | ||
|
||
# Önbellekleme ayarları | ||
<IfModule mod_expires.c> | ||
ExpiresActive On | ||
ExpiresByType text/html "access plus 0 seconds" | ||
ExpiresByType image/jpg "access plus 1 month" | ||
ExpiresByType image/gif "access plus 1 month" | ||
ExpiresByType image/png "access plus 1 month" | ||
ExpiresByType text/css "access plus 1 week" | ||
ExpiresByType application/javascript "access plus 1 week" | ||
</IfModule> | ||
|
||
# UTF-8 karakter kodlaması | ||
<IfModule mod_mime.c> | ||
AddCharset utf-8 .html .css .js | ||
</IfModule> | ||
|
||
# Belirli dosya türlerinin erişimini engelleme | ||
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|sql)$"> | ||
Order allow,deny | ||
Deny from all | ||
</FilesMatch> | ||
|
||
# HTTPS yönlendirmesi | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
RewriteCond %{HTTPS} !=on | ||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | ||
</IfModule> |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.