{"id":34410,"date":"2021-12-06T13:34:40","date_gmt":"2021-12-06T10:34:40","guid":{"rendered":"https:\/\/thedigitalmarker.com\/?p=34410"},"modified":"2025-04-19T12:55:52","modified_gmt":"2025-04-19T09:55:52","slug":"301-yonlendirmesi-nasil-yapilir","status":"publish","type":"post","link":"https:\/\/blog.markergroupe.com\/tr\/301-yonlendirmesi-nasil-yapilir\/","title":{"rendered":"301 Y\u00f6nlendirmesi Nas\u0131l Yap\u0131l\u0131r?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_78 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0130\u00e7indekiler<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.markergroupe.com\/tr\/301-yonlendirmesi-nasil-yapilir\/#Kalici_Yonlendirme_Hangi_Durumlarda_Kullanilir\" >Kal\u0131c\u0131 Y\u00f6nlendirme Hangi Durumlarda Kullan\u0131l\u0131r?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.markergroupe.com\/tr\/301-yonlendirmesi-nasil-yapilir\/#301_Yonlendirme_Kodlari\" >301 Y\u00f6nlendirme Kodlar\u0131<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.markergroupe.com\/tr\/301-yonlendirmesi-nasil-yapilir\/#htaccess_Dosyasi_Icin_301_Yonlendirme_Kodu\" >.htaccess Dosyas\u0131 \u0130\u00e7in 301 Y\u00f6nlendirme Kodu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.markergroupe.com\/tr\/301-yonlendirmesi-nasil-yapilir\/#PHP_Icin_301_Yonlendirme_Kodu\" >PHP \u0130\u00e7in 301 Y\u00f6nlendirme Kodu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.markergroupe.com\/tr\/301-yonlendirmesi-nasil-yapilir\/#ASPNET_Icin_301_Yonlendirme_Kodu\" >ASP.NET \u0130\u00e7in 301 Y\u00f6nlendirme Kodu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blog.markergroupe.com\/tr\/301-yonlendirmesi-nasil-yapilir\/#WordPress_Icin_301_Yonlendirme_Eklentisi\" >WordPress \u0130\u00e7in 301 Y\u00f6nlendirme Eklentisi<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blog.markergroupe.com\/tr\/301-yonlendirmesi-nasil-yapilir\/#301_Yonlendirme_Nasil_Test_Edilir\" >301 Y\u00f6nlendirme Nas\u0131l Test Edilir?<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>301 Y\u00f6nlendirme, \u2018Redirect Permanent\u2019 yani kal\u0131c\u0131 olarak y\u00f6nlendirmek demektir. Web sitenizin i\u00e7eri\u011fini de\u011fi\u015ftirmeye veya ba\u015fka bir projeye y\u00f6nlenmeye karar verdi\u011finizde 301 y\u00f6nlendirmesini kullanmak zorundas\u0131n\u0131z demektir.<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Art\u0131k yerinde olmayan, kullan\u0131lmayan, kald\u0131r\u0131lm\u0131\u015f veya ba\u015fka bir URL\u2019e ta\u015f\u0131nan bir sayfan\u0131n yeni adrese kal\u0131c\u0131 olarak ta\u015f\u0131nd\u0131\u011f\u0131n\u0131 Google\u2019a ifade edebilmemiz i\u00e7in 301 y\u00f6nlendirme kullanmam\u0131z gerekmektedir. Kesinlikle kal\u0131c\u0131 y\u00f6nlendirme durumlar\u0131nda kullan\u0131lmal\u0131, ge\u00e7ici de\u011fi\u015fiklikler i\u00e7in ba\u015fvurulmamal\u0131d\u0131r.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">301 Y\u00f6nlendirmesi olduk\u00e7a kolay bir \u015fekilde yap\u0131labilir. Linux tabanl\u0131 i\u015fletim sistemlerinde bulunan .htaccess dosyas\u0131 \u00fczerinde yapaca\u011f\u0131n\u0131z ufak de\u011fi\u015fiklikler ile, y\u00f6nlendirmek istedi\u011finiz istedi\u011finiz URL\u2019li istedi\u011finiz gibi kontrol edebilirsiniz. Ancak .htaccess dosyas\u0131 \u00fczerinde de\u011fi\u015fiklikler yaparken \u00e7ok dikkatli olmakta fayda var. Olas\u0131 500 Internal Server Error\u2019lerden ka\u00e7\u0131nmak i\u00e7in, dosyan\u0131z\u0131n orijinal halinin bir kopyas\u0131n\u0131 mutlaka al\u0131n.<\/span><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Kalici_Yonlendirme_Hangi_Durumlarda_Kullanilir\"><\/span><span style=\"font-weight: 400;\">Kal\u0131c\u0131 Y\u00f6nlendirme Hangi Durumlarda Kullan\u0131l\u0131r?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Her zaman kullan\u0131lmayan bir y\u00f6nlendirme t\u00fcr\u00fcd\u00fcr ve ger\u00e7ekten ihtiya\u00e7 halinde kullan\u0131lmas\u0131 olduk\u00e7a \u00f6nemlidir. Y\u00f6nlendirme yaparken bunun kal\u0131c\u0131 bir y\u00f6nlendirme oldu\u011fundan ve y\u00f6nlendirme sonras\u0131nda y\u00f6nlendirmenin do\u011fru bir \u015fekilde \u00e7al\u0131\u015ft\u0131\u011f\u0131ndan emin olmal\u0131y\u0131z. Peki hangi durumlarda 301 y\u00f6nlendirme i\u015flemine ba\u015fvurmal\u0131y\u0131z?<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Silinen sayfalar\u0131n\u0131z\u0131 ilgili ba\u015fka bir sayfaya y\u00f6nlendirmek,<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Domain de\u011fi\u015fikli\u011fi yapmak,<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">URL yap\u0131s\u0131n\u0131n de\u011fi\u015fikli\u011fi yapmak,<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Site ta\u015f\u0131ma i\u015fleminde ihtiya\u00e7 halinde,<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">404\u2019e d\u00fc\u015fen sayfalar\u0131n\u0131z\u0131 ilgili bir sayfaya y\u00f6nlendirmek,<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Eski i\u00e7erik yeni bir URL\u2019de g\u00fcncel olarak var oldu\u011funda,<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Birbirine benzer sayfalar\u0131 tek bir sayfada birle\u015ftirdi\u011finizde,<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">HTTPS\/SSL kullan\u0131m\u0131na ge\u00e7ti\u011finizde kullan\u0131l\u0131r.<\/span><\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"301_Yonlendirme_Kodlari\"><\/span><span style=\"font-weight: 400;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-34412\" title=\"301 y\u00f6nlendirmesi nas\u0131l yap\u0131l\u0131r\" src=\"https:\/\/blog.markergroupe.com\/wp-content\/uploads\/2021\/12\/301b.jpg\" alt=\"301 y\u00f6nlendirmesi nas\u0131l yap\u0131l\u0131r\" width=\"1500\" height=\"600\" \/>301 Y\u00f6nlendirme Kodlar\u0131<\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">301 y\u00f6nlendirme i\u015flemini yapmak i\u00e7in birden fazla y\u00f6ntem kullanabilirsiniz. Bu y\u00f6ntemler sitenizin altyap\u0131s\u0131na, kulland\u0131\u011f\u0131n\u0131z CMS sistemine (WordPress, Joomla vb.) g\u00f6re de\u011fi\u015fiklik g\u00f6sterebilir. A\u015fa\u011f\u0131daki y\u00f6ntemlerden size uygun olan\u0131 kullanarak y\u00f6nlendirme i\u015flemlerinizi kolayl\u0131kla yapabilir ve ard\u0131ndan y\u00f6nlendirdi\u011finiz URL\u2019leri test ederek yapt\u0131\u011f\u0131n\u0131z i\u015flemlerin do\u011fru bir \u015fekilde \u00e7al\u0131\u015f\u0131p \u00e7al\u0131\u015fmad\u0131\u011f\u0131n\u0131 kontrol edebilirsiniz.<\/span><\/p>\n<h4><span class=\"ez-toc-section\" id=\"htaccess_Dosyasi_Icin_301_Yonlendirme_Kodu\"><\/span><span style=\"font-weight: 400;\">.htaccess Dosyas\u0131 \u0130\u00e7in 301 Y\u00f6nlendirme Kodu<\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Redirect 301 \/eskidosya.html <\/span><span style=\"font-weight: 400;\">https:\/\/yenisite.com\/yenidosya.html<\/span><\/p>\n<h4><span class=\"ez-toc-section\" id=\"PHP_Icin_301_Yonlendirme_Kodu\"><\/span><span style=\"font-weight: 400;\">PHP \u0130\u00e7in 301 Y\u00f6nlendirme Kodu<\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">&lt;?php<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/\/ Permanent 301 redirection<\/span><\/p>\n<p><span style=\"font-weight: 400;\">header(\u201cHTTP\/1.1 301 Moved Permanently\u201d);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">header(\u201cLocation: <\/span><span style=\"font-weight: 400;\">https:\/\/yeniadres.com\/\u201c<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">exit();<\/span><\/p>\n<p><span style=\"font-weight: 400;\">?&gt;<\/span><\/p>\n<h4><span class=\"ez-toc-section\" id=\"ASPNET_Icin_301_Yonlendirme_Kodu\"><\/span><span style=\"font-weight: 400;\">ASP.NET \u0130\u00e7in 301 Y\u00f6nlendirme Kodu<\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Response.Status = \u201c301 Moved Permanently\u201d;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Response.StatusCode = 301;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Response.StatusDescription = \u201cMoved Permanently\u201d;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Response.AddHeader(\u201cLocation\u201d, \u201cURL-BURAYA-GELECEK\u201c);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Response.End();<\/span><\/p>\n<h4><span class=\"ez-toc-section\" id=\"WordPress_Icin_301_Yonlendirme_Eklentisi\"><\/span><span style=\"font-weight: 400;\">WordPress \u0130\u00e7in 301 Y\u00f6nlendirme Eklentisi<\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">WordPress\u2019te kal\u0131c\u0131 y\u00f6nlendirme i\u015flemini yapmak i\u00e7in herhangi bir kod yazman\u0131za gerek kalmadan kullanabilece\u011finiz eklentiler mevcuttur. Tavsiye etti\u011fim Redirection eklentisi ile y\u00f6nlendirme i\u015flemlerinizi yapabilir ve herhangi bir kodla u\u011fra\u015fmadan bu i\u015flemi \u00e7\u00f6z\u00fcme kavu\u015fturabilirsiniz. Eklentiye eski adresi ve yeni adresi girmeniz yeterli olacakt\u0131r.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Redirection eklentisi: <\/span><span style=\"font-weight: 400;\">https:\/\/tr.wordpress.org\/plugins\/redirection\/<\/span><\/p>\n<h4><span class=\"ez-toc-section\" id=\"301_Yonlendirme_Nasil_Test_Edilir\"><\/span><span style=\"font-weight: 400;\">301 Y\u00f6nlendirme Nas\u0131l Test Edilir?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"font-weight: 400;\">Yapt\u0131\u011f\u0131n\u0131z kal\u0131c\u0131 y\u00f6nlendirme i\u015fleminin ba\u015far\u0131l\u0131 olup olmad\u0131\u011f\u0131n\u0131 ve d\u00fczg\u00fcn bir \u015fekilde \u00e7al\u0131\u015f\u0131p \u00e7al\u0131\u015fmad\u0131\u011f\u0131n\u0131 kontrol etmeniz i\u00e7in iki y\u00f6ntem \u00f6nerebilirim. E\u011fer Google Chrome kullan\u0131yorsan\u0131z, uzant\u0131 ma\u011fazas\u0131nda \u00fccretsiz olarak yer alan Redirect Path uzant\u0131s\u0131 i\u015finize yarayacakt\u0131r. Yapman\u0131z gereken tek \u015fey eklentiyi Chrome\u2019a entegre etmek ve ard\u0131ndan 301 ile y\u00f6nlendirdi\u011finiz adrese girmek. URL\u2019i a\u00e7t\u0131\u011f\u0131n\u0131zda e\u011fer 301 y\u00f6nlendirme \u00e7al\u0131\u015f\u0131yorsa sa\u011f \u00fcstte eklentinin \u00fczerinde 301 simgesini g\u00f6receksiniz. \u00dczerine t\u0131klad\u0131\u011f\u0131n\u0131zda ise URL\u2019in kayna\u011f\u0131 ve y\u00f6nlendirme hakk\u0131nda bilgi edinebilirsiniz.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0130kinci bir y\u00f6ntem de \u00e7o\u011fu ki\u015finin bildi\u011fi HTTP Status (<\/span><span style=\"font-weight: 400;\">https:\/\/httpstatus.io\/<\/span><span style=\"font-weight: 400;\">) web sitesi. Siteyi a\u00e7t\u0131\u011f\u0131n\u0131zda kar\u015f\u0131n\u0131za gelen kutucu\u011fa URL\u2019i girdikten sonra Check Status butonuna basman\u0131z yeterli oluyor. Birka\u00e7 saniye i\u00e7erisinde URL taran\u0131yor ve y\u00f6nlendirmenin olup olmad\u0131\u011f\u0131, varsa detaylar\u0131 kar\u015f\u0131n\u0131za \u00e7\u0131k\u0131yor.<\/span><\/p>\n<p><em>Siz de web sitenizde bu hatalarla kar\u015f\u0131la\u015fmak istemiyorsan\u0131z bizimle\u00a0<a href=\"https:\/\/www.markergroupe.com\/iletisim\" rel=\"external noopener noreferrer\" data-wpel-link=\"external\">MarkerGroupe.com<\/a> web sitesi \u00fczerinden veya <span style=\"color: #ffcc00;\">hello@markergroupe.com<\/span> e-mail adresi \u00fczerinden ileti\u015fime ge\u00e7ebilirsiniz.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>301 Y\u00f6nlendirme, \u2018Redirect Permanent\u2019 yani kal\u0131c\u0131 olarak y\u00f6nlendirmek demektir. Web sitenizin i\u00e7eri\u011fini de\u011fi\u015ftirmeye veya ba\u015fka bir projeye y\u00f6nlenmeye karar verdi\u011finizde 301 y\u00f6nlendirmesini kullanmak zorundas\u0131n\u0131z demektir. Art\u0131k yerinde olmayan, kullan\u0131lmayan, kald\u0131r\u0131lm\u0131\u015f veya ba\u015fka bir URL\u2019e ta\u015f\u0131nan bir sayfan\u0131n yeni adrese kal\u0131c\u0131 olarak ta\u015f\u0131nd\u0131\u011f\u0131n\u0131 Google\u2019a ifade edebilmemiz i\u00e7in 301 y\u00f6nlendirme kullanmam\u0131z gerekmektedir. Kesinlikle kal\u0131c\u0131 y\u00f6nlendirme durumlar\u0131nda kullan\u0131lmal\u0131, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":35748,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","footnotes":""},"categories":[638,1477],"tags":[1531,1473],"class_list":["post-34410","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-tr","category-yazilim","tag-301-yonlendirmesi","tag-digital-marker-tr"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/blog.markergroupe.com\/tr\/wp-json\/wp\/v2\/posts\/34410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.markergroupe.com\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.markergroupe.com\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.markergroupe.com\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.markergroupe.com\/tr\/wp-json\/wp\/v2\/comments?post=34410"}],"version-history":[{"count":0,"href":"https:\/\/blog.markergroupe.com\/tr\/wp-json\/wp\/v2\/posts\/34410\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.markergroupe.com\/tr\/wp-json\/wp\/v2\/media\/35748"}],"wp:attachment":[{"href":"https:\/\/blog.markergroupe.com\/tr\/wp-json\/wp\/v2\/media?parent=34410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.markergroupe.com\/tr\/wp-json\/wp\/v2\/categories?post=34410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.markergroupe.com\/tr\/wp-json\/wp\/v2\/tags?post=34410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}