Options -Indexes
ErrorDocument 402 /err402
ErrorDocument 403 /err402
ErrorDocument 404 /err404
ErrorDocument 500 /err500
DirectoryIndex index.php

RemoveHandler .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
AddType application/x-httpd-php-source .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py

AddDefaultCharset UTF-8

<IfModule mod_expires.c>
    ExpiresActive on
    ExpiresDefault                                      "access plus 1 month"

  # CSS
    ExpiresByType text/css                              "access plus 1 year"

  # Data interchange
    ExpiresByType application/json                      "access plus 0 seconds"
    ExpiresByType application/ld+json                   "access plus 0 seconds"
    ExpiresByType application/xml                       "access plus 0 seconds"
    ExpiresByType text/xml                              "access plus 0 seconds"

  # Favicon (cannot be renamed!) and cursor images
    ExpiresByType image/x-icon                          "access plus 1 week"

  # HTML components (HTCs)
    ExpiresByType text/x-component                      "access plus 1 month"

  # HTML
    ExpiresByType text/html                             "access plus 0 seconds"

  # JavaScript
    ExpiresByType application/javascript                "access plus 1 year"

  # Manifest files
    ExpiresByType application/x-web-app-manifest+json   "access plus 0 seconds"
    ExpiresByType text/cache-manifest                   "access plus 0 seconds"

  # Media
    ExpiresByType audio/ogg                             "access plus 1 month"
    ExpiresByType image/gif                             "access plus 1 month"
    ExpiresByType image/jpeg                            "access plus 1 month"
    ExpiresByType image/png                             "access plus 1 month"
    ExpiresByType video/mp4                             "access plus 1 month"
    ExpiresByType video/ogg                             "access plus 1 month"
    ExpiresByType video/webm                            "access plus 1 month"

  # Web feeds
    ExpiresByType application/atom+xml                  "access plus 1 hour"
    ExpiresByType application/rss+xml                   "access plus 1 hour"
</IfModule>

RewriteEngine On

### errorlar
RewriteRule ^err402?$ err.php?err=402 [L,QSA]
RewriteRule ^err403?$ err.php?err=403 [L,QSA]
RewriteRule ^err404?$ err.php?err=404 [L,QSA]
RewriteRule ^err500?$ err.php?err=500 [L,QSA]

### bolumler
RewriteRule ^upload/?$ yukleme/upload.php [L,QSA]
RewriteRule ^upload-file/?$ yukleme/addfile.php [L,QSA]
RewriteRule ^create-singer/?$ yukleme/addsinger.php [L,QSA]
RewriteRule ^singers/?$ yukleme/cat.php?saylaw=singer [L,QSA]
RewriteRule ^likes/?$ yukleme/cat.php?saylaw=likes [L,QSA]
RewriteRule ^musics/?$ yukleme/cat.php?saylaw=aydym [L,QSA]
RewriteRule ^videos/?$ yukleme/cat.php?saylaw=video [L,QSA]

### salgylanmalar
RewriteRule ^singers/(.*?)$ yukleme/singer.php?id=$1 [L,QSA]
RewriteRule ^musics/(.*?)$ yukleme/music.php?id=$1 [L,QSA]
RewriteRule ^videos/(.*?)$ yukleme/video.php?id=$1 [L,QSA]

### fayllary yuklemek
RewriteRule ^yukle/(.*?)$ yukleme/getfile.php?id=$1 [L,QSA]