{"id":488,"date":"2025-09-10T14:10:37","date_gmt":"2025-09-10T11:10:37","guid":{"rendered":"https:\/\/destek.narhost.com\/?p=488"},"modified":"2025-10-26T14:20:10","modified_gmt":"2025-10-26T11:20:10","slug":"apache2-wordpress-404-hatasinin-cozumu","status":"publish","type":"post","link":"https:\/\/narhost.com\/destek\/apache2-wordpress-404-hatasinin-cozumu\/","title":{"rendered":"Apache2 WordPress 404 Hatas\u0131n\u0131n \u00c7\u00f6z\u00fcm\u00fc"},"content":{"rendered":"<h3 data-start=\"559\" data-end=\"611\"><strong data-start=\"563\" data-end=\"611\">1. Apache mod_rewrite Mod\u00fcl\u00fcn\u00fc Etkinle\u015ftirme<\/strong><\/h3>\n<p data-start=\"613\" data-end=\"701\">\u0130lk ad\u0131m olarak, <strong data-start=\"630\" data-end=\"645\">mod_rewrite<\/strong> mod\u00fcl\u00fcn\u00fc etkinle\u015ftirmek i\u00e7in a\u015fa\u011f\u0131daki komutu kullan\u0131n:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">sudo a2enmod rewrite<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"737\" data-end=\"863\">Bu komut, Apache&#8217;nin URL y\u00f6nlendirmelerini do\u011fru \u015fekilde yapabilmesi i\u00e7in gereken <strong data-start=\"819\" data-end=\"834\">mod_rewrite<\/strong> mod\u00fcl\u00fcn\u00fc etkinle\u015ftirecektir.<\/p>\n<h3 data-start=\"865\" data-end=\"915\"><strong data-start=\"869\" data-end=\"915\">2. Apache Yap\u0131land\u0131rma Dosyas\u0131n\u0131 D\u00fczenleme<\/strong><\/h3>\n<p data-start=\"917\" data-end=\"1054\">Sonraki ad\u0131mda, <strong data-start=\"933\" data-end=\"966\">Apache yap\u0131land\u0131rma dosyas\u0131n\u0131<\/strong> d\u00fczenlemeniz gerekecek. \u0130lgili dizine yazma izinlerini vermek i\u00e7in \u015fu ad\u0131mlar\u0131 izleyin:<\/p>\n<ol data-start=\"1056\" data-end=\"1637\">\n<li data-start=\"1056\" data-end=\"1223\">\n<p data-start=\"1059\" data-end=\"1142\">Apache konfig\u00fcrasyon dosyas\u0131n\u0131 a\u00e7\u0131n (burada \u00f6rnek olarak bir dizin belirtilmi\u015ftir):<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">sudo nano \/etc\/apache2\/sites-available\/000-default.conf<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li data-start=\"1225\" data-end=\"1637\">\n<p data-start=\"1228\" data-end=\"1330\"><strong data-start=\"1228\" data-end=\"1243\">&lt;Directory&gt;<\/strong> blo\u011fu i\u00e7inde, <strong data-start=\"1258\" data-end=\"1279\">AllowOverride All<\/strong> direktifini ekleyin veya d\u00fczenleyin. \u00d6rnek olarak:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-apache\">&lt;Directory \"\/home\/ubuntu\/alanadicom\/\"&gt;<br \/>\nOptions Indexes FollowSymLinks<br \/>\nAllowOverride All<br \/>\nRequire all granted<br \/>\n&lt;\/Directory&gt;<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"1511\" data-end=\"1637\">Bu, <strong data-start=\"1515\" data-end=\"1528\">.htaccess<\/strong> dosyalar\u0131n\u0131n Apache taraf\u0131ndan okunmas\u0131na izin verir ve <strong data-start=\"1585\" data-end=\"1600\">mod_rewrite<\/strong> mod\u00fcl\u00fcn\u00fcn d\u00fczg\u00fcn \u00e7al\u0131\u015fmas\u0131n\u0131 sa\u011flar.<\/p>\n<\/li>\n<\/ol>\n<h3 data-start=\"1639\" data-end=\"1683\"><strong data-start=\"1643\" data-end=\"1683\">3. Apache Servisini Yeniden Ba\u015flatma<\/strong><\/h3>\n<p data-start=\"1685\" data-end=\"1840\">Yap\u0131land\u0131rma de\u011fi\u015fikliklerinin ge\u00e7erli olabilmesi i\u00e7in Apache servisini yeniden ba\u015flatman\u0131z gerekecek. A\u015fa\u011f\u0131daki komutla servisi yeniden ba\u015flatabilirsiniz:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-bash\">sudo service apache2 restart<\/code><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A\u015fa\u011f\u0131da, mod_rewrite mod\u00fcl\u00fcn\u00fcn aktif hale getirilmesi ve gerekli Apache yap\u0131land\u0131rma ayarlar\u0131n\u0131n nas\u0131l yap\u0131laca\u011f\u0131 ad\u0131m ad\u0131m anlat\u0131lmaktad\u0131r.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[22],"class_list":["post-488","post","type-post","status-publish","format-standard","hentry","category-wordpress-hosting","tag-wordpress"],"meta_box":[],"_links":{"self":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/comments?post=488"}],"version-history":[{"count":3,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/488\/revisions"}],"predecessor-version":[{"id":888,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/488\/revisions\/888"}],"wp:attachment":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/media?parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/categories?post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/tags?post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}