📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
📝
.htaccess
← Geri Dön
# --------------------------------------- # 1. GZIP Compression # --------------------------------------- <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/json AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/woff AddOutputFilterByType DEFLATE font/woff2 AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml </IfModule> # --------------------------------------- # 2. MIME Types for Fonts # --------------------------------------- <IfModule mod_mime.c> AddType font/otf .otf AddType font/ttf .ttf AddType font/woff .woff AddType font/woff2 .woff2 AddType application/vnd.ms-fontobject .eot AddType image/svg+xml .svg </IfModule> # --------------------------------------- # 3. Expires Headers (Caching) # --------------------------------------- <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 day" ExpiresByType text/html "access plus 10 minutes" ExpiresByType application/xhtml+xml "access plus 10 minutes" ExpiresByType text/css "access plus 6 months" ExpiresByType text/javascript "access plus 6 months" ExpiresByType application/javascript "access plus 6 months" ExpiresByType application/x-javascript "access plus 6 months" ExpiresByType image/gif "access plus 6 months" ExpiresByType image/jpeg "access plus 6 months" ExpiresByType image/png "access plus 6 months" ExpiresByType image/webp "access plus 6 months" ExpiresByType image/svg+xml "access plus 6 months" ExpiresByType image/x-icon "access plus 6 months" ExpiresByType font/ttf "access plus 6 months" ExpiresByType font/otf "access plus 6 months" ExpiresByType application/vnd.ms-fontobject "access plus 6 months" ExpiresByType font/woff "access plus 6 months" ExpiresByType font/woff2 "access plus 6 months" </IfModule> # --------------------------------------- # 4. Cache-Control Headers # --------------------------------------- <IfModule mod_headers.c> <FilesMatch "\.(ico|jpe?g|png|webp|gif|swf|css|js|ttf|otf|eot|woff|woff2|svg)$"> Header set Cache-Control "max-age=14515200, public" </FilesMatch> </IfModule> # --------------------------------------- # 5. Disable Directory Listing # --------------------------------------- Options -Indexes # --------------------------------------- # 6. Custom Error Page # --------------------------------------- ErrorDocument 404 /404 # --------------------------------------- # 7. Rewrite Rules (SEO Friendly URLs) # --------------------------------------- RewriteEngine On RewriteRule ^404$ index.php?page=404 [L] RewriteRule ^lang-change/([_A-Za-z0-9-]+)$ index.php?page=lang_change&lang=$1 [L] RewriteRule ^product/([_A-Za-z0-9-]+)-p-([0-9]+)$ index.php?page=product&sef=$1&id=$2 [L] RewriteRule ^search/([0-9]+)-(.*)/page/([0-9]+)$ index.php?page=search&c_id=$1&q=$2&page_no=$3 [L] RewriteRule ^search$ index.php?page=search [L] RewriteRule ^cart$ index.php?page=cart [L] RewriteRule ^cart-trash$ index.php?page=cart_trash [L] RewriteRule ^cart-remove/([0-9]+)$ index.php?page=cart_remove&id=$1 [L] RewriteRule ^ajax$ ajax.php [L] RewriteRule ^products/([_A-Za-z0-9-]+)/page/([0-9]+)$ index.php?page=category&sef=$1&page_no=$2 [L] RewriteRule ^products/([_A-Za-z0-9-]+)$ index.php?page=category&sef=$1 [L] RewriteRule ^brand/([0-9]+)/([_A-Za-z0-9-]+)/page/([0-9]+)$ index.php?page=brand&id=$1&sef=$2&page_no=$3 [L] RewriteRule ^brand/([0-9]+)/([_A-Za-z0-9-]+)$ index.php?page=brand&id=$1&sef=$2 [L] RewriteRule ^discounts/page/([0-9]+)$ index.php?page=discounts&page_no=$1 [L] RewriteRule ^discounts$ index.php?page=discounts [L] RewriteRule ^popular-products/page/([0-9]+)$ index.php?page=popular_products&page_no=$1 [L] RewriteRule ^popular-products$ index.php?page=popular_products [L] RewriteRule ^blog/page/([0-9]+)$ index.php?page=blog&page_no=$1 [L] RewriteRule ^blog/([_A-Za-z0-9-]+)$ index.php?page=blog_detail&sef=$1 [L] RewriteRule ^blog$ index.php?page=blog [L] RewriteRule ^page/([_A-Za-z0-9-]+)$ index.php?page=page&sef=$1 [L] RewriteRule ^renew-password/([_A-Za-z0-9-]+)$ index.php?page=renew_password&hash=$1 [L] RewriteRule ^forgot-password$ index.php?page=forgot_password [L] RewriteRule ^contact$ index.php?page=contact [L] RewriteRule ^faq$ index.php?page=faq [L] RewriteRule ^login$ index.php?page=login [L] RewriteRule ^register$ index.php?page=register [L] RewriteRule ^logout$ index.php?page=logout [L] RewriteRule ^account$ index.php?page=account [L] RewriteRule ^account/orders/page/([0-9]+)$ index.php?page=account_orders&page_no=$1 [L] RewriteRule ^account/orders$ index.php?page=account_orders [L] RewriteRule ^account/orders/([0-9]+)$ index.php?page=account_order_detail&id=$1 [L] RewriteRule ^account/address$ index.php?page=account_address [L] RewriteRule ^account/favorites$ index.php?page=account_favorites [L] RewriteRule ^account/stock-follow$ index.php?page=account_stock_follow [L] RewriteRule ^account/price-follow$ index.php?page=account_price_follow [L] RewriteRule ^account/address/add$ index.php?page=account_address_add [L] RewriteRule ^account/address/edit/([0-9]+)$ index.php?page=account_address_edit&id=$1 [L] RewriteRule ^account/address/delete/([0-9]+)$ index.php?page=account_address_delete&id=$1 [L] RewriteRule ^account/tickets$ index.php?page=account_tickets [L] RewriteRule ^account/tickets/new$ index.php?page=account_tickets_new [L] RewriteRule ^account/tickets/detail/([0-9]+)$ index.php?page=account_ticket_detail&id=$1 [L] RewriteRule ^sitemap.xml$ sitemap.php [L] RewriteRule ^sitemap_([_A-Za-z0-9-]+)_page_([0-9]+).xml$ sitemaps/sitemap_$1.php?page_no=$2 [L] RewriteRule ^sitemap_([_A-Za-z0-9-]+).xml$ sitemaps/sitemap_$1.php [L] RewriteRule ^payment-result/success$ index.php?page=payment_result&status=1 [L] RewriteRule ^payment-result/error$ index.php?page=payment_result&status=0 [L] RewriteRule ^bank-accounts$ index.php?page=bank_accounts [L] RewriteRule ^order-tracking/([0-9]+)/(.*)$ index.php?page=order_tracking&id=$1&email=$2 [L] RewriteRule ^order-tracking$ index.php?page=order_tracking [L] # --------------------------------------- # 8. PHP Sürüm Ayarı (GÜNCELLENMELİ) # --------------------------------------- <IfModule mime_module> AddHandler application/x-httpd-ea-php81 .php .php7 .phtml </IfModule> # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php72” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php72 .php .php7 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula