Skip to content

Commit

Permalink
İlk commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DCI Student committed Sep 12, 2024
1 parent 1f63a56 commit 3d32b3e
Show file tree
Hide file tree
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.
45 changes: 45 additions & 0 deletions .htaccess
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>
340 changes: 340 additions & 0 deletions artikel.html

Large diffs are not rendered by default.

Loading

0 comments on commit 3d32b3e

Please sign in to comment.