{"id":14011,"date":"2023-03-13T09:00:48","date_gmt":"2023-03-13T06:00:48","guid":{"rendered":"https:\/\/blog.sh.com.tr\/?p=14011"},"modified":"2023-03-13T16:34:34","modified_gmt":"2023-03-13T13:34:34","slug":"htaccess-nedir","status":"publish","type":"post","link":"https:\/\/sh.com.tr\/blog\/htaccess-nedir\/","title":{"rendered":"Htaccess Nedir?"},"content":{"rendered":"<p><b>\u00a0<\/b><b>.htaccess dosyas<\/b><b>\u0131<\/b><span style=\"font-weight: 400;\">, bir Apache web sunucusunda kullan\u0131lan bir yap\u0131land\u0131rma dosyas\u0131d\u0131r. Bu dosya, sunucu ve web uygulamas\u0131 ayarlar\u0131n\u0131 y<\/span><span style=\"font-weight: 400;\">\u00f6netmek i\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131l\u0131r. .htaccess dosyalar\u0131, web sitelerinin k<\/span><span style=\"font-weight: 400;\">\u00f6k dizininde olu<\/span><span style=\"font-weight: 400;\">\u015fturulur ve site y<\/span><span style=\"font-weight: 400;\">\u00f6neticisi taraf<\/span><span style=\"font-weight: 400;\">\u0131ndan d<\/span><span style=\"font-weight: 400;\">\u00fczenlenebilir.<\/span><\/p>\n<h2><b>En \u00c7ok Kullan<\/b><b>\u0131lan .htaccess Kodlar\u0131<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">En \u00e7ok kullan<\/span><span style=\"font-weight: 400;\">\u0131lan .htaccess kodlar\u0131 \u015funlard\u0131r:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Kullan<\/span><span style=\"font-weight: 400;\">\u0131c\u0131 eri\u015fim kontrol<\/span><span style=\"font-weight: 400;\">\u00fc: .htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131, bir dizindeki dosyalara eri\u015fimi s\u0131n\u0131rlamak i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, <\/span><span style=\"font-weight: 400;\">\u00f6zel i\u00e7erikleri, dosyalar<\/span><span style=\"font-weight: 400;\">\u0131 veya klas<\/span><span style=\"font-weight: 400;\">\u00f6rleri sadece belirli kullan<\/span><span style=\"font-weight: 400;\">\u0131c\u0131lara veya IP adreslerine eri\u015filebilir hale getirmek i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><b>\u00d6rnek Kod<\/b><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14012 size-full\" src=\"https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_32-1.png\" alt=\"\" width=\"852\" height=\"248\" srcset=\"https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_32-1.png 852w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_32-1-300x87.png 300w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_32-1-768x224.png 768w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_32-1-696x203.png 696w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Y\u00f6nlendirme: .htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131, kullan\u0131c\u0131lar\u0131 farkl\u0131 sayfalara veya web sitelerine y<\/span><span style=\"font-weight: 400;\">\u00f6nlendirmek i\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu <\/span><span style=\"font-weight: 400;\">\u00f6zellik, bir web sitesinin URL&#8217;lerini de<\/span><span style=\"font-weight: 400;\">\u011fi\u015ftirmek veya trafik y<\/span><span style=\"font-weight: 400;\">\u00f6nlendirmek i\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir.<\/span><\/li>\n<\/ul>\n<p><strong>\u00d6rnek Kod:<\/strong><\/p>\n<p><b><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14014 size-full\" src=\"https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_1.png\" alt=\"\" width=\"855\" height=\"136\" srcset=\"https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_1.png 855w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_1-300x48.png 300w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_1-768x122.png 768w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_1-696x111.png 696w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">MIME T\u00fcrleri: .htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131, belirli dosya t<\/span><span style=\"font-weight: 400;\">\u00fcrleri i\u00e7in MIME t\u00fcrleri belirlemek i\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, web taray\u0131c\u0131lar\u0131n\u0131n do\u011fru bi<\/span><span style=\"font-weight: 400;\">\u00e7imlendirme i\u00e7in hangi program<\/span><span style=\"font-weight: 400;\">\u0131 kullanacaklar\u0131n\u0131 bilmelerini sa\u011flar.<\/span><\/li>\n<\/ul>\n<p><strong>\u00d6rnek Kod:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14015 size-full\" src=\"https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_2.png\" alt=\"\" width=\"858\" height=\"238\" srcset=\"https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_2.png 858w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_2-300x83.png 300w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_2-768x213.png 768w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_2-696x193.png 696w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">K<\/span><span style=\"font-weight: 400;\">\u0131saltmalar: .htaccess dosyas\u0131, uzun URL&#8217;leri daha k\u0131sa hale getirmek i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, kullan\u0131c\u0131lar\u0131n web sitesinde gezinmesini\u00a0kolayla\u015ft\u0131r\u0131r.<\/span><\/li>\n<\/ul>\n<p><strong>\u00d6rnek Kod:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14017 size-full\" src=\"https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_4.png\" alt=\"\" width=\"855\" height=\"177\" srcset=\"https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_4.png 855w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_4-300x62.png 300w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_4-768x159.png 768w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_4-696x144.png 696w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Hata Sayfalar<\/span><span style=\"font-weight: 400;\">\u0131: .htaccess dosyas\u0131, sunucunun 404 veya di\u011fer hata sayfalar\u0131n\u0131 y<\/span><span style=\"font-weight: 400;\">\u00f6netmek i\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, kullan\u0131c\u0131lara daha iyi bir deneyim sa\u011flar ve web sitesinin marka b<\/span><span style=\"font-weight: 400;\">\u00fct\u00fcnl\u00fc<\/span><span style=\"font-weight: 400;\">\u011f<\/span><span style=\"font-weight: 400;\">\u00fcn\u00fc korur.<\/span><\/li>\n<\/ul>\n<p><strong>\u00d6rnek Kod<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14018 size-full\" src=\"https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_5.png\" alt=\"\" width=\"853\" height=\"124\" srcset=\"https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_5.png 853w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_5-300x44.png 300w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_5-768x112.png 768w, https:\/\/sh.com.tr\/blog\/wp-content\/uploads\/Screenshot_5-696x101.png 696w\" sizes=\"auto, (max-width: 853px) 100vw, 853px\" \/><\/p>\n<h2><b>.htaccess Nas<\/b><b>\u0131l <\/b><b>\u00c7al<\/b><b>\u0131\u015f\u0131r?<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">.htaccess (Hypertext Access) dosyas<\/span><span style=\"font-weight: 400;\">\u0131, bir Apache web sunucusunda bir dizi y<\/span><span style=\"font-weight: 400;\">\u00f6nergeyi veya kural<\/span><span style=\"font-weight: 400;\">\u0131 tan\u0131mlayan bir yap\u0131land\u0131rma dosyas\u0131d\u0131r. Bu dosya, web sunucusunun, belirli bir dizin veya klas<\/span><span style=\"font-weight: 400;\">\u00f6r alt<\/span><span style=\"font-weight: 400;\">\u0131ndaki dosyalar\u0131n davran\u0131\u015f\u0131n\u0131 nas\u0131l etkileyece\u011fini kontrol etmek i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">.htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131, web sunucusu taraf\u0131ndan y<\/span><span style=\"font-weight: 400;\">\u00f6netilen bir klas\u00f6rdeki t\u00fcm alt dizinler i\u00e7in ge\u00e7erlidir ve bu nedenle b\u00f6lgesel yap<\/span><span style=\"font-weight: 400;\">\u0131land\u0131rma veya y<\/span><span style=\"font-weight: 400;\">\u00f6netim sa<\/span><span style=\"font-weight: 400;\">\u011flamak i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. <\/span><span style=\"font-weight: 400;\">\u00d6rne<\/span><span style=\"font-weight: 400;\">\u011fin, bir .htaccess dosyas\u0131, kullan\u0131c\u0131lar\u0131n bir dizindeki belirli dosyalara eri\u015fmesini engelleyebilir veya belirli bir dizindeki t<\/span><span style=\"font-weight: 400;\">\u00fcm HTML dosyalar<\/span><span style=\"font-weight: 400;\">\u0131n\u0131n gzip s\u0131k\u0131\u015ft\u0131rmas\u0131n\u0131 etkinle\u015ftirebilir.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">.htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131, genellikle bir metin d<\/span><span style=\"font-weight: 400;\">\u00fczenleyici veya FTP program<\/span><span style=\"font-weight: 400;\">\u0131 gibi bir ara<\/span><span style=\"font-weight: 400;\">\u00e7la d\u00fczenlenebilir. <\/span><span style=\"font-weight: 400;\">\u0130<\/span><span style=\"font-weight: 400;\">\u00e7eri<\/span><span style=\"font-weight: 400;\">\u011fi, <\/span><span style=\"font-weight: 400;\">\u00f6nceden tan<\/span><span style=\"font-weight: 400;\">\u0131mlanm\u0131\u015f bir y<\/span><span style=\"font-weight: 400;\">\u00f6nerge veya kural setiyle olu<\/span><span style=\"font-weight: 400;\">\u015fturulur. Bu kurallar, &#8220;RewriteRule&#8221; gibi s<\/span><span style=\"font-weight: 400;\">\u00f6zdizimiyle tan<\/span><span style=\"font-weight: 400;\">\u0131mlan\u0131r ve belirli bir dizindeki t<\/span><span style=\"font-weight: 400;\">\u00fcm dosyalar i\u00e7in uygulanabilir.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">.htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131, web sunucusunun g<\/span><span style=\"font-weight: 400;\">\u00fcvenlik a\u00e7<\/span><span style=\"font-weight: 400;\">\u0131s\u0131ndan kritik dosyalar\u0131na eri\u015fim izni olan ki\u015filer taraf\u0131ndan d<\/span><span style=\"font-weight: 400;\">\u00fczenlenebilir. Bu nedenle, bir .htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131 olu\u015fturulurken, dosyan\u0131n i<\/span><span style=\"font-weight: 400;\">\u00e7eri<\/span><span style=\"font-weight: 400;\">\u011finin yan\u0131 s\u0131ra dosyan\u0131n g<\/span><span style=\"font-weight: 400;\">\u00fcvenli<\/span><span style=\"font-weight: 400;\">\u011fine de dikkat edilmelidir.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><b>.htaccess Dosyas<\/b><b>\u0131n\u0131n Kullan\u0131m Alanlar\u0131<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">.<strong>htaccess dosyas<\/strong><\/span><span style=\"font-weight: 400;\"><strong>\u0131,<\/strong> bir Apache web sunucusu <\/span><span style=\"font-weight: 400;\">\u00fczerinde web sayfalar<\/span><span style=\"font-weight: 400;\">\u0131n\u0131n davran\u0131\u015flar\u0131n\u0131 de\u011fi\u015ftirmek i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131lan bir konfig<\/span><span style=\"font-weight: 400;\">\u00fcrasyon dosyas<\/span><span style=\"font-weight: 400;\">\u0131d\u0131r. A\u015fa\u011f\u0131da, .htaccess dosyas\u0131n\u0131n kullan\u0131m alanlar\u0131ndan baz\u0131lar\u0131 bulunmaktad\u0131r:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Y\u00f6nlendirme:<\/b><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">Z<\/span><span style=\"font-weight: 400;\">iyaret\u00e7ileri web sitesinde farkl<\/span><span style=\"font-weight: 400;\">\u0131<\/span><span style=\"font-weight: 400;\"> sayfalara y\u00f6nlendirmek i\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. <\/span><span style=\"font-weight: 400;\">\u00d6rne<\/span><span style=\"font-weight: 400;\">\u011fin, bir web sayfas\u0131n\u0131n URL&#8217;si de\u011fi\u015fti\u011finde, .htaccess dosyas\u0131 sayesinde eski URL&#8217;ler otomatik olarak yeni URL&#8217;ye y<\/span><span style=\"font-weight: 400;\">\u00f6nlendirilebilir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Kimlik do<\/b><b>\u011frulama:<\/b> <span style=\"font-weight: 400;\">B<\/span><span style=\"font-weight: 400;\">ir web sayfas\u0131n\u0131n eri\u015fimini s\u0131n\u0131rlamak i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. <\/span><span style=\"font-weight: 400;\">\u00d6rne<\/span><span style=\"font-weight: 400;\">\u011fin, bir web sitesine sadece belirli bir kullan\u0131c\u0131 grubu veya IP adresi aral\u0131\u011f\u0131ndan eri\u015fim sa\u011flanabilir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>\u00d6nbellekleme:<\/b><span style=\"font-weight: 400;\"> W<\/span><span style=\"font-weight: 400;\">eb sayfalar<\/span><span style=\"font-weight: 400;\">\u0131<\/span><span style=\"font-weight: 400;\">n<\/span><span style=\"font-weight: 400;\">\u0131n <\/span><span style=\"font-weight: 400;\">\u00f6nbelle<\/span><span style=\"font-weight: 400;\">\u011fe al\u0131nmas\u0131 i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, web sitesinin h\u0131z\u0131n\u0131 art\u0131rabilir ve sunucu y<\/span><span style=\"font-weight: 400;\">\u00fck\u00fcn\u00fc azaltabilir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Hata y\u00f6netimi:<\/b> <span style=\"font-weight: 400;\">S<\/span><span style=\"font-weight: 400;\">unucunun hata mesajlar<\/span><span style=\"font-weight: 400;\">\u0131<\/span><span style=\"font-weight: 400;\">n<\/span><span style=\"font-weight: 400;\">\u0131 <\/span><span style=\"font-weight: 400;\">\u00f6zelle<\/span><span style=\"font-weight: 400;\">\u015ftirmek i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, ziyaret<\/span><span style=\"font-weight: 400;\">\u00e7ilere daha anla<\/span><span style=\"font-weight: 400;\">\u015f\u0131l\u0131r hata mesajlar\u0131 sunarak web sitesinin kullan\u0131c\u0131 dostu olmas\u0131n\u0131 sa\u011flayabilir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>S<\/b><b>\u0131k\u0131\u015ft\u0131rma:<\/b><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">W<\/span><span style=\"font-weight: 400;\">eb sayfalar\u0131n\u0131n s\u0131k\u0131\u015ft\u0131r\u0131lmas\u0131 i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, web sitesinin h\u0131z\u0131n\u0131 art\u0131rabilir ve sunucu y<\/span><span style=\"font-weight: 400;\">\u00fck\u00fcn\u00fc azaltabilir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">MIME<\/span><b> t\u00fcrleri:<\/b> <span style=\"font-weight: 400;\">S<\/span><span style=\"font-weight: 400;\">unucunun MIME t\u00fcrlerini \u00f6zelle<\/span><span style=\"font-weight: 400;\">\u015f<\/span><span style=\"font-weight: 400;\">tirmek i\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. MIME t<\/span><span style=\"font-weight: 400;\">\u00fcrleri, web sayfalar<\/span><span style=\"font-weight: 400;\">\u0131n\u0131n do\u011fru bir \u015fekilde g<\/span><span style=\"font-weight: 400;\">\u00f6r\u00fcnt\u00fclenmesi i\u00e7in gereklidir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Script \u00e7al<\/b><b>\u0131\u015ft\u0131rma:<\/b><span style=\"font-weight: 400;\">S<\/span><span style=\"font-weight: 400;\">unucuda <\/span><span style=\"font-weight: 400;\">\u00e7al<\/span><span style=\"font-weight: 400;\">\u0131\u015ft\u0131r\u0131lacak betikleri <\/span><span style=\"font-weight: 400;\">\u00f6zelle<\/span><span style=\"font-weight: 400;\">\u015ftirmek i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, web sitesinin i\u015flevselli\u011fini art\u0131rabilir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>SSL sertifikalar<\/b><b>\u0131: <\/b><span style=\"font-weight: 400;\">S<\/span><span style=\"font-weight: 400;\">unucunun SSL sertifikalar\u0131n\u0131 <\/span><span style=\"font-weight: 400;\">\u00f6zelle<\/span><span style=\"font-weight: 400;\">\u015ftirmek i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. SSL sertifikalar\u0131, web sitelerinin g<\/span><span style=\"font-weight: 400;\">\u00fcvenli bir <\/span><span style=\"font-weight: 400;\">\u015fekilde ileti\u015fim kurmas\u0131n\u0131 sa\u011flar.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Bu sadece baz<\/span><span style=\"font-weight: 400;\">\u0131 <\/span><span style=\"font-weight: 400;\">\u00f6rneklerdir. .htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131, web sitelerinin <\/span><span style=\"font-weight: 400;\">\u00f6zelle<\/span><span style=\"font-weight: 400;\">\u015ftirilmesinde bir<\/span><span style=\"font-weight: 400;\">\u00e7ok farkl<\/span><span style=\"font-weight: 400;\">\u0131 ama<\/span><span style=\"font-weight: 400;\">\u00e7 i\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Ancak, .htaccess dosyas\u0131n\u0131n kullan\u0131m\u0131, yanl\u0131\u015f yap\u0131ld\u0131\u011f\u0131nda web sitesine zarar verebilir, bu nedenle bu dosyalar\u0131n d<\/span><span style=\"font-weight: 400;\">\u00fczenlenmesi i\u00e7in tecr\u00fcbeli bir web geli<\/span><span style=\"font-weight: 400;\">\u015ftiricisinin yard\u0131m\u0131 <\/span><span style=\"font-weight: 400;\">\u00f6nerilir.<\/span><\/p>\n<h2><b>htaccess Dosyas<\/b><b>\u0131 Neler Yapabilirsiniz?<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">.htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131, web sunucular\u0131 taraf\u0131ndan kullan\u0131lan bir konfig<\/span><span style=\"font-weight: 400;\">\u00fcrasyon dosyas<\/span><span style=\"font-weight: 400;\">\u0131d\u0131r. Bu dosya, Apache HTTP sunucusunda kullan\u0131l\u0131r ve web sitelerinde bir<\/span><span style=\"font-weight: 400;\">\u00e7ok farkl<\/span><span style=\"font-weight: 400;\">\u0131 i\u015flem yapmak i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. \u0130\u015fte .htaccess dosyas\u0131 ile yap\u0131labilecek baz\u0131 \u015feyler:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">URL yeniden yazma: .htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131, web sitenizin URL&#8217;lerini yeniden yazmak i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu sayede, URL&#8217;ler daha anla\u015f\u0131l\u0131r hale getirilebilir ve arama motoru dostu hale getirilebilir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Eri<\/b><b>\u015fim kontrol<\/b><b>\u00fc<\/b><span style=\"font-weight: 400;\">:\u00a0 Belirli IP adresleri veya IP aral<\/span><span style=\"font-weight: 400;\">\u0131<\/span><span style=\"font-weight: 400;\">klar<\/span><span style=\"font-weight: 400;\">\u0131ndan gelen ziyaret<\/span><span style=\"font-weight: 400;\">\u00e7ilere eri<\/span><span style=\"font-weight: 400;\">\u015fimi engellemek veya izin vermek i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Ayr\u0131ca, belirli kullan\u0131c\u0131 adlar\u0131 ve \u015fifrelerle korunan bir b<\/span><span style=\"font-weight: 400;\">\u00f6l\u00fcm olu<\/span><span style=\"font-weight: 400;\">\u015fturmak i<\/span><span style=\"font-weight: 400;\">\u00e7in de kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Mime tipleri:<\/b><span style=\"font-weight: 400;\"> .htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131<\/span><span style=\"font-weight: 400;\">, sunucunuzun belirli dosya t\u00fcrlerinin MIME t\u00fcr\u00fcn\u00fc tan<\/span><span style=\"font-weight: 400;\">\u0131mas\u0131n\u0131 sa\u011flamak i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, web sitenizin belirli t<\/span><span style=\"font-weight: 400;\">\u00fcrdeki dosyalar<\/span><span style=\"font-weight: 400;\">\u0131 do\u011fru \u015fekilde i\u015flemesini sa\u011flar.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>S<\/b><b>\u0131k\u0131\u015ft\u0131rma<\/b><span style=\"font-weight: 400;\">\u00a0 Web sitenizin sayfalar\u0131n\u0131 s\u0131k\u0131\u015ft\u0131rmak i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, sayfalar\u0131n daha h\u0131zl\u0131 y<\/span><span style=\"font-weight: 400;\">\u00fcklenmesini sa<\/span><span style=\"font-weight: 400;\">\u011flayarak kullan\u0131c\u0131 deneyimini art\u0131r\u0131r.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Y\u00f6nlendirme:<\/b><span style=\"font-weight: 400;\"> .htaccess dosyas<\/span><span style=\"font-weight: 400;\">\u0131<\/span><span style=\"font-weight: 400;\">, belirli URL&#8217;leri ba<\/span><span style=\"font-weight: 400;\">\u015fka bir URL&#8217;ye y<\/span><span style=\"font-weight: 400;\">\u00f6nlendirmek i\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, bir sayfan\u0131n URL&#8217;sinin de\u011fi\u015ftirildi\u011fi durumlarda kullan\u0131\u015fl\u0131 olabilir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Hata sayfalar<\/b><b>\u0131<\/b><span style=\"font-weight: 400;\">:\u00a0 Sunucunun hata sayfalar\u0131n\u0131 <\/span><span style=\"font-weight: 400;\">\u00f6zelle<\/span><span style=\"font-weight: 400;\">\u015ftirmek i<\/span><span style=\"font-weight: 400;\">\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, kullan\u0131c\u0131lara daha iyi bir kullan\u0131c\u0131 deneyimi sa\u011flar.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Cache kontrol\u00fc: <\/b><span style=\"font-weight: 400;\">\u00a0web sitenizin sayfalar<\/span><span style=\"font-weight: 400;\">\u0131<\/span><span style=\"font-weight: 400;\">n<\/span><span style=\"font-weight: 400;\">\u0131n <\/span><span style=\"font-weight: 400;\">\u00f6nbelle<\/span><span style=\"font-weight: 400;\">\u011fe al\u0131nmas\u0131n\u0131 y<\/span><span style=\"font-weight: 400;\">\u00f6netmek i\u00e7in kullan<\/span><span style=\"font-weight: 400;\">\u0131labilir. Bu, sayfalar\u0131n daha h\u0131zl\u0131 y<\/span><span style=\"font-weight: 400;\">\u00fcklenmesini sa<\/span><span style=\"font-weight: 400;\">\u011flar.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Bu yaln<\/span><span style=\"font-weight: 400;\">\u0131zca .htaccess dosyas\u0131 ile yapabileceklerinizin baz\u0131 <\/span><span style=\"font-weight: 400;\">\u00f6rnekleridir. Bu dosya, bir web sunucusu y\u00f6neticisi i\u00e7in olduk\u00e7a g\u00fc\u00e7l\u00fc bir ara\u00e7t<\/span><span style=\"font-weight: 400;\">\u0131r ve web sitelerini <\/span><span style=\"font-weight: 400;\">\u00f6zelle<\/span><span style=\"font-weight: 400;\">\u015ftirmek i<\/span><span style=\"font-weight: 400;\">\u00e7in bir\u00e7ok farkl<\/span><span style=\"font-weight: 400;\">\u0131 yoldan yararlan\u0131labilir.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0.htaccess dosyas\u0131, bir Apache web sunucusunda kullan\u0131lan bir yap\u0131land\u0131rma dosyas\u0131d\u0131r. Bu dosya, sunucu ve web uygulamas\u0131 ayarlar\u0131n\u0131 y\u00f6netmek i\u00e7in kullan\u0131l\u0131r. .htaccess dosyalar\u0131, web sitelerinin k\u00f6k dizininde olu\u015fturulur ve site y\u00f6neticisi taraf\u0131ndan d\u00fczenlenebilir. En \u00c7ok Kullan\u0131lan .htaccess Kodlar\u0131 En \u00e7ok kullan\u0131lan .htaccess kodlar\u0131 \u015funlard\u0131r: Kullan\u0131c\u0131 eri\u015fim kontrol\u00fc: .htaccess dosyas\u0131, bir dizindeki dosyalara eri\u015fimi s\u0131n\u0131rlamak i\u00e7in kullan\u0131labilir. [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":14022,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,6],"tags":[37,286],"class_list":["post-14011","post","type-post","status-publish","format-standard","has-post-thumbnail","category-bilgi-bankasi","category-hosting","tag-hosting","tag-htaccess"],"_links":{"self":[{"href":"https:\/\/sh.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sh.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sh.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sh.com.tr\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/sh.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=14011"}],"version-history":[{"count":0,"href":"https:\/\/sh.com.tr\/blog\/wp-json\/wp\/v2\/posts\/14011\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sh.com.tr\/blog\/wp-json\/wp\/v2\/media\/14022"}],"wp:attachment":[{"href":"https:\/\/sh.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=14011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sh.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=14011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sh.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=14011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}