{"id":201,"date":"2017-02-15T20:30:36","date_gmt":"2017-02-15T17:30:36","guid":{"rendered":"https:\/\/www.melibera.com\/blog\/?p=201"},"modified":"2022-09-30T21:16:33","modified_gmt":"2022-09-30T21:16:33","slug":"htaccess-ile-wordpress-hizlandirma","status":"publish","type":"post","link":"https:\/\/www.melibera.com\/blog\/htaccess-ile-wordpress-hizlandirma.html","title":{"rendered":".htaccess \u0130le WordPress H\u0131zland\u0131rma"},"content":{"rendered":"<p>Merhabalar, Bu yaz\u0131m\u0131zda wordpress h\u0131zland\u0131rma ile ilgili bir ipucu payla\u015faca\u011f\u0131z. WordPress g\u00fcn\u00fcm\u00fczde en \u00e7ok kullan\u0131lan cms sistemlerinden bir tanesidir. Hatta \u00f6yle ki g\u00fcn\u00fcm\u00fczde yap\u0131lan web sitelerinin %60 dan fazlas\u0131 wordpress ile yap\u0131lmaktad\u0131r. WordPress genelde sunucu kaynaklar\u0131n\u0131 \u00e7ok harcayan ve yava\u015f \u00e7al\u0131\u015fan bir sistemdir. Bu yaz\u0131m\u0131zda verece\u011fimiz ipucu ile wordpress siteniz bir nebze daha stabil \u00e7al\u0131\u015facak. Hadi haz\u0131rsan\u0131z ba\u015flayal\u0131m \ud83d\ude42<br \/>\n<strong><br \/>\n1 &#8211; Klas\u00f6r listeleme fonksiyonu: <\/strong>Genellikle yap\u0131lan bir hatad\u0131r. Taray\u0131c\u0131ya yaz\u0131lan dosya yolu ile o dosyan\u0131n i\u00e7erisinde yer alan klas\u00f6rlere ve dosyalara ula\u015f\u0131labilmektedir, buda g\u00fcvenlik a\u00e7\u0131klar\u0131na neden olmaktad\u0131r. A\u015fa\u011f\u0131daki komutu .htaccess dosyan\u0131za ekleyerek bu a\u00e7\u0131\u011f\u0131 kapatabilirsiniz.<\/p>\n<p># Options -Indexes<br \/>\n<strong><br \/>\n2 &#8211; Taray\u0131c\u0131 \u00f6n belleklemeyi aktif edin:<\/strong> \u00d6n bellekleme sitenizi h\u0131zland\u0131racak ve google ara\u00e7lar\u0131 taraf\u0131ndan \u00f6nerilen bir yap\u0131d\u0131r. Taray\u0131c\u0131 \u00f6n belleklemeyi aktif etmeniz ile birlikte bir kullan\u0131c\u0131 sitenize girdi\u011finde sitenizi taray\u0131c\u0131 \u00f6n belle\u011fine alacakt\u0131r. Bu sayede kullan\u0131c\u0131 tekrar sitenize girdi\u011finde taray\u0131c\u0131 hosting hizmetinize daha az sorgu yollayacakt\u0131r ve siteniz daha h\u0131zl\u0131 a\u00e7\u0131lacakt\u0131r. Bu i\u015flem i\u00e7in a\u015fa\u011f\u0131daki komutlar\u0131 .htaccess dosyan\u0131za ekleyiniz.<\/p>\n<pre class=\"\">#\r\n#ExpiresActive On\r\n#ExpiresByType image\/jpg \"access 1 year\"\r\n#ExpiresByType image\/jpeg \"access 1 year\"\r\n#ExpiresByType image\/gif \"access 1 year\"\r\n#ExpiresByType image\/png \"access 1 year\"\r\n#ExpiresByType text\/css \"access 1 month\"\r\n#ExpiresByType text\/html \"access 1 month\"\r\n#ExpiresByType application\/pdf \"access 1 month\"\r\n#ExpiresByType text\/x-javascript \"access 1 month\"\r\n#ExpiresByType application\/x-shockwave-flash \"access 1 month\"\r\n#ExpiresByType image\/x-icon \"access 1 year\"\r\n#ExpiresDefault \"access 1 month\"\r\n#\r\n<\/pre>\n<figure id=\"attachment_202\" aria-describedby=\"caption-attachment-202\" style=\"width: 1990px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-202 size-full\" src=\"https:\/\/www.melibera.com\/blog\/wp-content\/uploads\/Melibera-wordpress-hizmetleri.jpg\" width=\"2000\" height=\"571\" srcset=\"https:\/\/www.melibera.com\/blog\/wp-content\/uploads\/Melibera-wordpress-hizmetleri.jpg 2000w, https:\/\/www.melibera.com\/blog\/wp-content\/uploads\/Melibera-wordpress-hizmetleri-300x86.jpg 300w, https:\/\/www.melibera.com\/blog\/wp-content\/uploads\/Melibera-wordpress-hizmetleri-768x219.jpg 768w, https:\/\/www.melibera.com\/blog\/wp-content\/uploads\/Melibera-wordpress-hizmetleri-1024x292.jpg 1024w\" sizes=\"(max-width: 2000px) 100vw, 2000px\" \/><figcaption id=\"caption-attachment-202\" class=\"wp-caption-text\">wordpress<\/figcaption><\/figure>\n<p><strong>3 &#8211; Scriptlerin \u00e7al\u0131\u015fmas\u0131n\u0131 engelleyin: <\/strong> A\u015fa\u011f\u0131da yer alan komut shell ve script vir\u00fcslerinin \u00e7al\u0131\u015fmas\u0131n\u0131 engelleyecektir. WordPress \u00e7ok kullan\u0131lmas\u0131 ile birlikte devaml\u0131 olarak a\u00e7\u0131klar\u0131 aranmakta ve bu a\u00e7\u0131klar \u00fczerinden siteye vir\u00fcsler eklenmektedir. Bu vir\u00fcsler \u00e7al\u0131\u015fmaya ba\u015flad\u0131\u011f\u0131nda ise siteniz yava\u015flamakta ve g\u00fcvenlik problemi ya\u015fatmaktad\u0131r.<\/p>\n<pre class=\"\">#AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi\r\n#Options -ExecCGI\r\n<\/pre>\n<p><strong>4 &#8211; \u00d6nemli dosyalar\u0131n\u0131z\u0131 d\u0131\u015f eri\u015fime kapat\u0131n: <\/strong> A\u015fa\u011f\u0131da yer alan komut web sitenize gelecek hack sorgular\u0131n\u0131 yok edecektir. B\u00f6ylece d\u0131\u015far\u0131dan gelen sorgular sitenizi yava\u015flatmayacak ve g\u00fcvenlik a\u00e7\u0131klar\u0131 en alt seviyeye inecektir.<\/p>\n<pre class=\"\">Order Deny,Allow\r\nDeny from all\r\nOrder Allow,Deny\r\nDeny from all\r\n<\/pre>\n<p>Umar\u0131z yazd\u0131\u011f\u0131m\u0131z yaz\u0131 i\u015finize yarayacakt\u0131r. Konumuzda yer alan hizmetler d\u0131\u015f\u0131nda bir konuda yard\u0131ma ihtiyac\u0131n\u0131z olursa melibera <a href=\"https:\/\/www.melibera.com\/kategori\/hosting\/wordpress-hosting\">wordpress hizmetleri <\/a>ile ileti\u015fime ge\u00e7ebilirsiniz.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Merhabalar, Bu yaz\u0131m\u0131zda wordpress h\u0131zland\u0131rma ile ilgili bir ipucu payla\u015faca\u011f\u0131z. WordPress g\u00fcn\u00fcm\u00fczde en \u00e7ok kullan\u0131lan cms sistemlerinden bir tanesidir. Hatta &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\".htaccess \u0130le WordPress H\u0131zland\u0131rma\" class=\"read-more button\" href=\"https:\/\/www.melibera.com\/blog\/htaccess-ile-wordpress-hizlandirma.html#more-201\" aria-label=\"More on .htaccess \u0130le WordPress H\u0131zland\u0131rma\">Devam\u0131\u0131n\u0131 Oku<\/a><\/p>\n","protected":false},"author":1,"featured_media":202,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/posts\/201"}],"collection":[{"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":1,"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"predecessor-version":[{"id":1830,"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions\/1830"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/media\/202"}],"wp:attachment":[{"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melibera.com\/blog\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}