{"id":81,"date":"2013-10-18T11:28:47","date_gmt":"2013-10-18T14:28:47","guid":{"rendered":"http:\/\/arielnavarrete.wordpress.com\/?p=81"},"modified":"2013-10-18T11:28:47","modified_gmt":"2013-10-18T14:28:47","slug":"redireccionar-a-la-carpeta-web","status":"publish","type":"post","link":"https:\/\/arielnavarrete.cl\/blog\/2013\/10\/18\/redireccionar-a-la-carpeta-web\/","title":{"rendered":"Redireccionar a la carpeta WEB"},"content":{"rendered":"<p>Cuando ya tenemos nuestros proyecto en Symfony2 listo, nos queda solo un detalle&#8230;<\/p>\n<p><em>\u00bfQu\u00e9 pasa si algun Usuario quita el<strong> \/web<\/strong> de la URL?<\/em><\/p>\n<p><!--more Seguir Leyendo...--><\/p>\n<p>Uff&#8230; pues podria llegar a\u00a0 ver nuestros directorios, algo que no es muy recomendable, ni muy seguro que digamos, para evitar esto es bastante simple, lo unico que tenemos que hacer es agregar un archivo <strong>.htaccess<\/strong> en la raiz de nuestro proyecto y listo<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nRewriteEngine On\nRewriteCond %{REQUEST_FILEname} !-f\nRewriteRule ^(.*)$ web &#x5B;QSA,L]\n<\/pre>\n<p>Entonces, si tenemos un proyecto llamado<\/p>\n<p><strong>www.juuber.cl\/web<\/strong><\/p>\n<p>Y alguien accede a<\/p>\n<p><strong>www.juuber.cl<\/strong><\/p>\n<p>Lo redireccionamos de inmediato a la URL original (<strong>www.juuber.cl\/web<\/strong>)<\/p>\n<p>Simple y facil no?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cuando ya tenemos nuestros proyecto en Symfony2 listo, nos queda solo un detalle&#8230; \u00bfQu\u00e9 pasa si algun Usuario quita el \/web de la URL?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,12],"tags":[16,23,25],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-php-2","category-symfony2-2","tag-htaccess","tag-php","tag-symfony2"],"_links":{"self":[{"href":"https:\/\/arielnavarrete.cl\/blog\/wp-json\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arielnavarrete.cl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arielnavarrete.cl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arielnavarrete.cl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arielnavarrete.cl\/blog\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":0,"href":"https:\/\/arielnavarrete.cl\/blog\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"wp:attachment":[{"href":"https:\/\/arielnavarrete.cl\/blog\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arielnavarrete.cl\/blog\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arielnavarrete.cl\/blog\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}