{"id":4531,"date":"2012-08-29T20:00:48","date_gmt":"2012-08-29T18:00:48","guid":{"rendered":"http:\/\/blogs.wittwer.fr\/whiler\/?p=4531"},"modified":"2023-03-12T14:57:45","modified_gmt":"2023-03-12T13:57:45","slug":"redirection","status":"publish","type":"post","link":"https:\/\/blogs.wittwer.fr\/whiler\/2012\/08\/29\/redirection\/","title":{"rendered":"Redirection"},"content":{"rendered":"<p>L&rsquo;un des <del datetime=\"2012-08-29T18:00:00+00:00\">nombreux<\/del> lecteurs de ce blog m&rsquo;a fait remarquer que l&rsquo;on ne pouvait pas y acc\u00e9der en utilisant l&rsquo;adresse&nbsp;: <a href=\"https:\/\/blog.whiler.com\/\" title=\"Redirection\">https:\/\/blog.whiler.com\/<\/a><\/p>\n<p>Dor\u00e9navant, cette <a href=\"http:\/\/fr.wikipedia.org\/wiki\/URL\" rel=\"glossary\" target=\"_blank\" title=\"Wikipedia, D&eacute;finition de&nbsp;: URL\" style=\"\" >URL<\/a><sup style=\"font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA\" ><em>W<\/em><\/sup> est utilisable&#8230; le blog reste n\u00e9anmoins toujours \u00e0 la m\u00eame adresse&nbsp;: <a href=\"\/whiler\/\" title=\"mon blog\">https:\/\/blogs.wittwer.fr\/whiler\/<\/a><\/p>\n<p>Pour ajouter ce nouveau site, cela a \u00e9t\u00e9 tr\u00e8s simple&#8230;<\/p>\n<div id=\"attachment_4533\" style=\"width: 258px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4533\" src=\"\/whiler\/wp-content\/uploads\/2012\/08\/apache_httpd_logo.png\" alt=\"Serveur HTTP Apache\" title=\"Serveur HTTP Apache\" width=\"248\" height=\"70\" class=\"size-full wp-image-4533\" \/><p id=\"caption-attachment-4533\" class=\"wp-caption-text\">Serveur HTTP Apache<\/p><\/div>\n<p><!--more--><br \/>\n&nbsp;<\/p>\n<p>J&rsquo;ai cr\u00e9e un nouveau sous-domaine dans mon h\u00e9bergement de Whiler.com&nbsp;:<\/p>\n<ul>\n<li>Cr\u00e9ation d&rsquo;un r\u00e9pertoire en racine (m\u00eame niveau qu&rsquo;un <em>www<\/em>)<\/li>\n<li>Ajout d&rsquo;une entr\u00e9e (<em>A<\/em>) dans la zone de DNS pointant sur le m\u00eame serveur<\/li>\n<\/ul>\n<p>Ensuite, j&rsquo;ai simplement ajout\u00e9 un fichier <a href=\"https:\/\/httpd.apache.org\/docs\/current\/fr\/howto\/htaccess.html\" title=\"Tutoriel du serveur HTTP Apache : fichiers .htaccess\" target=\"_blank\" rel=\"noopener\">.htaccess<\/a> avec une r\u00e8gle de r\u00e9\u00e9criture&nbsp;: <code class=\"codecolorer apache dawn\"><span class=\"apache\"><span class=\"kw1\">RedirectMatch<\/span> permanent \/(.*)$ https:\/\/blogs.wittwer.fr\/whiler\/$1<\/span><\/code> <img src=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-includes\/images\/smilies\/skype\/\/yes.gif\" alt=\"(y)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/> <\/p>\n<div class=\"thanks_button_div\" \n                  style=\"float: right; margin-right: 10px; margin-top:10px;\"><div id=\"thanksButtonDiv_4531_1\" style=\"background-image:url(https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/plugins\/thanks-you-counter-button\/images\/thanks_compact_brown1.png); background-repeat:no-repeat; float: left; display: inline;\"\n                onmouseover=\"javascript:thankYouChangeButtonImage('thanksButtonDiv_4531_1', true);\" \n                onmouseout=\"javascript:thankYouChangeButtonImage('thanksButtonDiv_4531_1', false);\"\n                onclick=\"javascript:thankYouChangeButtonImage('thanksButtonDiv_4531_1', false);\" >\n                <input type=\"button\" onclick=\"thankYouButtonClick(4531, 'You left &ldquo;Thanks&rdquo; already for this post')\" value=\"Merci\u00a0 0\"\n                  class=\"thanks_button thanks_compact thanks_brown1\"\n                  style=\"  font-family: Verdana, Arial, Sans-Serif; font-size: 14px; font-weight: normal;; color:#00f;\"\n                  id=\"thanksButton_4531_1\" title=\"Click to leave &ldquo;Thanks&rdquo; for this post\"\/>\n             <\/div><div id=\"ajax_loader_4531_1\" style=\"display:inline;visibility: hidden;\"><img decoding=\"async\" alt=\"ajax loader\" src=\"https:\/\/blogs.wittwer.fr\/whiler\/wp-content\/plugins\/thanks-you-counter-button\/images\/ajax-loader.gif\" \/><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>L\u2019un des lecteurs de ce blog m\u2019a fait remarquer que l\u2019on ne pouvait pas y acc\u00e9der en utilisant l\u2019adresse : https:\/\/blog.whiler.com\/<\/p>\n<p>Dor\u00e9navant, cette URL est utilisable\u2026 le blog reste n\u00e9anmoins toujours \u00e0 la m\u00eame adresse : https:\/\/blogs.wittwer.fr\/whiler\/<\/p>\n<p>Pour ajouter ce nouveau site, cela a \u00e9t\u00e9 tr\u00e8s simple\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[11],"tags":[106,27,31],"class_list":["post-4531","post","type-post","status-publish","format-standard","hentry","category-web","tag-blog","tag-coloration-syntaxique","tag-hebergement"],"_links":{"self":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts\/4531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/comments?post=4531"}],"version-history":[{"count":1,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts\/4531\/revisions"}],"predecessor-version":[{"id":6359,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/posts\/4531\/revisions\/6359"}],"wp:attachment":[{"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/media?parent=4531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/categories?post=4531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.wittwer.fr\/whiler\/wp-json\/wp\/v2\/tags?post=4531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}