{"id":5350,"date":"2026-03-02T12:00:18","date_gmt":"2026-03-02T09:00:18","guid":{"rendered":"https:\/\/hostingdunyam.com.tr\/blog\/?p=5350"},"modified":"2026-03-04T03:41:44","modified_gmt":"2026-03-04T00:41:44","slug":"307-yonlendirmesi-nedir","status":"publish","type":"post","link":"https:\/\/hostingdunyam.com.tr\/blog\/307-yonlendirmesi-nedir","title":{"rendered":"307 Y\u00f6nlendirmesi Nedir?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">307 y\u00f6nlendirmesi (307 Temporary Redirect), bir web sayfas\u0131n\u0131n veya kayna\u011f\u0131n ge\u00e7ici olarak farkl\u0131 bir URL \u00fczerinden sunulaca\u011f\u0131n\u0131 bildiren bir HTTP durum kodudur. Bu durum kodu, istemciye (taray\u0131c\u0131 veya bot) \u201c\u0130stedi\u011fin kaynak \u015fu an burada de\u011fil ama ge\u00e7ici olarak ba\u015fka bir adresten eri\u015febilirsin\u201d mesaj\u0131 verir.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">307 y\u00f6nlendirmesi, HTTP\/1.1 ile birlikte daha tutarl\u0131 davran\u0131\u015f sa\u011flamak amac\u0131yla geli\u015ftirilmi\u015ftir. Bu kod, 302 y\u00f6nlendirmesine benzer g\u00f6r\u00fcnse de arada \u00f6nemli bir teknik fark vard\u0131r:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"> 307 y\u00f6nlendirmesinde HTTP metodunun (GET, POST, PUT vb.) kesinlikle korunmas\u0131 gereklidir. Taray\u0131c\u0131 y\u00f6nlendirmeyi ger\u00e7ekle\u015ftirirken iste\u011fin t\u00fcr\u00fcn\u00fc de\u011fi\u015ftiremez.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Bu nedenle 307 Temporary Redirect, \u00f6zellikle form g\u00f6nderimleri, API istekleri, \u00f6deme ad\u0131mlar\u0131, oturum i\u015flemleri gibi POST veya PUT iste\u011fi gerektiren kritik durumlarda g\u00fcvenilir bir ge\u00e7ici y\u00f6nlendirme \u00e7\u00f6z\u00fcm\u00fcd\u00fcr.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Ne Zaman 307 Y\u00f6nlendirmesi Kullan\u0131l\u0131r?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">307 y\u00f6nlendirmesi, \u00f6zellikle ge\u00e7icilik durumunun net \u015fekilde belirtildi\u011fi senaryolarda tercih edilir. A\u015fa\u011f\u0131da en yayg\u0131n kullan\u0131m alanlar\u0131n\u0131 bulabilirsiniz:<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Sunucuda Ge\u00e7ici Bak\u0131m veya Ta\u015f\u0131nma Oldu\u011funda<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Bir sayfa veya endpoint ge\u00e7ici olarak kapal\u0131ysa, kullan\u0131c\u0131lar\u0131 ba\u015fka bir adrese y\u00f6nlendirirken 307 kodu kullan\u0131labilir. Bu, arama motorlar\u0131na ve taray\u0131c\u0131lara \u201cBu sadece ge\u00e7ici, ana URL ge\u00e7erlili\u011fini koruyor\u201d mesaj\u0131 verir.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">HTTP Metodunun Korunmas\u0131 Gerekiyorsa<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">302 y\u00f6nlendirmesinde taray\u0131c\u0131lar iste\u011fi GET iste\u011fine \u00e7evirebilir ancak 307&#8217;de bu kesinlikle engellenir. Bu da \u015fu durumlarda kritik \u00f6neme sahiptir:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Form POST i\u015flemleri<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">API endpoint y\u00f6nlendirmeleri<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u00d6deme ad\u0131mlar\u0131<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Yetkilendirme token i\u015flemleri<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u00d6rne\u011fin bir \u00f6deme ad\u0131m\u0131 i\u00e7in POST iste\u011fi yap\u0131l\u0131yorsa ve bu ad\u0131m ge\u00e7ici olarak ba\u015fka bir URL\u2019den \u00e7al\u0131\u015f\u0131yorsa, y\u00f6nlendirmenin POST olarak iletilmesi zorunludur. Bu durumda 307 y\u00f6nlendirmesi yap\u0131lmal\u0131d\u0131r.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">SEO A\u00e7\u0131s\u0131ndan Ge\u00e7ici Y\u00f6nlendirme Gereksinimleri<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">307 y\u00f6nlendirmesi, Google&#8217;a ve di\u011fer arama motorlar\u0131na URL\u2019nin kal\u0131c\u0131 olarak ta\u015f\u0131nmad\u0131\u011f\u0131n\u0131 bildirir. Bu nedenle:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Eski URL&#8217;nin indekslenmeye devam etmesi istenir.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Link de\u011feri (authority) ge\u00e7ici hedef URL\u2019ye ta\u015f\u0131nmaz.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Botlar ilerleyen g\u00fcnlerde yeniden eski URL&#8217;yi taramaya devam eder.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Dolay\u0131s\u0131yla \u201csite ge\u00e7ici bak\u0131mda\u201d, \u201ctest a\u015famas\u0131 devam ediyor\u201d, \u201c\u00fcr\u00fcn k\u0131sa s\u00fcreli stok d\u0131\u015f\u0131\u201d gibi durumlar i\u00e7in do\u011fru y\u00f6nlendirme t\u00fcr\u00fcd\u00fcr.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Trafi\u011fi Ge\u00e7ici Olarak Farkl\u0131 Sunucuya Alma Durumlar\u0131nda<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">B\u00fcy\u00fck \u00f6l\u00e7ekli sitelerde y\u00fck dengeleme veya sunucu g\u00fcncellemeleri yap\u0131l\u0131rken trafik zaman zaman ba\u015fka sunucuya y\u00f6nlendirilebilir. Bu s\u00fcre\u00e7te 307 Temporary Redirect s\u0131k\u00e7a kullan\u0131l\u0131r.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">307 Ge\u00e7ici Y\u00f6nlendirme Nas\u0131l Yap\u0131l\u0131r?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">307 y\u00f6nlendirmesi, kullan\u0131lan sunucu teknolojisine g\u00f6re birka\u00e7 \u015fekilde uygulanabilir. \u0130\u015fte en yayg\u0131n y\u00f6ntemler:<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">.htaccess ile 307 Y\u00f6nlendirmesi (Apache)<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Apache sunucularda <\/span><span style=\"font-weight: 400;\">.htaccess<\/span><span style=\"font-weight: 400;\"> dosyas\u0131 kullanarak 307 y\u00f6nlendirmesi yapmak m\u00fcmk\u00fcnd\u00fcr:<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">Redirect 307 \/eski-sayfa https:\/\/www.ornek.com\/yeni-sayfa<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Daha geli\u015fmi\u015f bir Rewrite kural\u0131 ise \u015fu \u015fekildedir:<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">RewriteEngine On<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">RewriteRule ^eski-sayfa$ https:\/\/www.ornek.com\/yeni-sayfa [R=307,L]<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"font-weight: 400;\">Nginx ile 307 Y\u00f6nlendirmesi<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Nginx sunucularda y\u00f6nlendirme yap\u0131land\u0131rmas\u0131 \u015fu \u015fekilde yap\u0131l\u0131r:<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">location \/eski-sayfa {<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">\u00a0\u00a0\u00a0\u00a0return 307 https:\/\/www.ornek.com\/yeni-sayfa;<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">}<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Bu yap\u0131, ge\u00e7ici bir y\u00f6nlendirme gerekti\u011finde en net ve g\u00fcvenilir y\u00f6ntemlerden biridir.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">PHP ile 307 Y\u00f6nlendirme<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Dinamik projelerde, y\u00f6nlendirmeyi PHP ile kontrol etmek gerekebilir:<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">header(&#8220;Location: https:\/\/www.ornek.com\/yeni-sayfa&#8221;, true, 307);<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">exit();<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">PHP\u2019de <\/span><span style=\"font-weight: 400;\">true<\/span><span style=\"font-weight: 400;\"> parametresi yeni HTTP durum kodunun g\u00f6nderilmesini sa\u011flar.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">JavaScript ile 307 Y\u00f6nlendirme (\u00d6nerilmez)<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Taray\u0131c\u0131 taraf\u0131nda JavaScript ile y\u00f6nlendirme yap\u0131labilir; ancak SEO a\u00e7\u0131s\u0131ndan tercih edilmez:<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">window.location.replace(&#8220;https:\/\/www.ornek.com\/yeni-sayfa&#8221;);<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Bu t\u00fcr y\u00f6nlendirmeler arama motorlar\u0131 taraf\u0131ndan sunucu y\u00f6nlendirmesi kadar g\u00fc\u00e7l\u00fc alg\u0131lanmaz.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">API ve Backend Frameworklerde 307 Y\u00f6nlendirme<\/span><\/h3>\n<p><span style=\"font-weight: 400; color: #ff0000;\">\u00d6rne\u011fin Node.js Express \u00fczerinde:<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">app.get(&#8216;\/eski&#8217;, (req, res) =&gt; {<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">\u00a0\u00a0res.redirect(307, &#8216;\/yeni&#8217;);<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">});<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Laravel:<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">return redirect()-&gt;away(&#8216;https:\/\/www.ornek.com\/yeni-sayfa&#8217;, 307);<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Django:<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">from django.http import HttpResponseRedirect<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\">return HttpResponseRedirect(&#8216;https:\/\/www.ornek.com\/yeni-sayfa&#8217;)<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>307 y\u00f6nlendirmesi (307 Temporary Redirect), bir web sayfas\u0131n\u0131n veya kayna\u011f\u0131n ge\u00e7ici olarak farkl\u0131 bir URL \u00fczerinden sunulaca\u011f\u0131n\u0131 bildiren bir HTTP durum kodudur. Bu durum kodu, istemciye (taray\u0131c\u0131 veya bot) \u201c\u0130stedi\u011fin kaynak \u015fu an burada de\u011fil ama ge\u00e7ici olarak ba\u015fka bir adresten eri\u015febilirsin\u201d mesaj\u0131 verir. 307 y\u00f6nlendirmesi, HTTP\/1.1 ile birlikte daha tutarl\u0131 davran\u0131\u015f sa\u011flamak amac\u0131yla geli\u015ftirilmi\u015ftir. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5351,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5350","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-genel"],"_links":{"self":[{"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/posts\/5350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=5350"}],"version-history":[{"count":1,"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/posts\/5350\/revisions"}],"predecessor-version":[{"id":5352,"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/posts\/5350\/revisions\/5352"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/media\/5351"}],"wp:attachment":[{"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=5350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=5350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostingdunyam.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=5350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}