• 18-03-2019, 12:58:16
    #1
    Merhaba,
    google'den siteye girdiğimde hangi dosyaya giriyorsam .htaccess direk o dosyayı indirtiyor
    nasıl düzeltebilirim?

    RewriteEngine On 
    
    # Handle Front Controller... 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ index.php [QSA,L] 
    
    # Disable Directory Listing For Security 
    Options -Indexes 
    
    # Caching For Static Files To Make Bandwidth Lower 
    <IfModule mod_expires.c> 
    ExpiresActive On 
    ExpiresByType image/jpg "access 1 year" 
    ExpiresByType image/jpeg "access 1 year" 
    ExpiresByType image/gif "access 1 year" 
    ExpiresByType image/png "access 1 year" 
    ExpiresByType text/css "access 1 month" 
    ExpiresByType text/html "access 1 month" 
    ExpiresByType application/pdf "access 1 month" 
    ExpiresByType text/x-javascript "access 1 month" 
    ExpiresByType application/x-shockwave-flash "access 1 month" 
    ExpiresByType image/x-icon "access 1 year" 
    ExpiresDefault "access 1 month" 
    </IfModule> 
    
    # Report Encoding Options To Client 
    <IfModule mod_headers.c> 
      <FilesMatch ".(js|css|xml|gz)$"> 
        Header append Vary: Accept-Encoding 
      </FilesMatch> 
    </IfModule> 
    
    # php -- BEGIN cPanel-generated handler, do not edit 
    # Set the “ea-php56” package as the default “PHP” programming language. 
    <IfModule mime_module> 
      AddType application/x-httpd-ea-php56 .php .php5 .phtml 
    </IfModule> 
    # php -- END cPanel-generated handler, do not edit
  • 18-03-2019, 13:04:35
    #2
    <IfModule mime_module> 
       AddType application/x-httpd-ea-php56 .php .php5 .phtml 
       </IfModule>


    Bunu kaldırıp dener misin hocam?

    Alt taki gibi kullanabilirsin siten wordpress ise;
    Options -Indexes
    
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/[0-9a-zA-Z_-]+$
    RewriteCond %{REQUEST_URI} !^/.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/(?: Ballot169)?
    RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
    RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    
    [B]<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType text/html "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
    </IfModule>
  • 18-03-2019, 13:06:02
    #3
    Zartnet adlı üyeden alıntı: mesajı görüntüle
    <IfModule mime_module> 
      AddType application/x-httpd-ea-php56 .php .php5 .phtml 
      </IfModule>


    Bunu kaldırıp dener misin hocam?


    Çözdüm hocam teşekkürler.