<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Carlos Gonçalves &#187; htaccess</title>
	<atom:link href="http://cgoncalves.com/category/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://cgoncalves.com</link>
	<description>Bem Vindo à Web 2.0! Este blog é direccionado a todos os níveis de web designers e programadores. Todos os assuntos serão discutidos, incluindo CSS, Javascript, Java, PHP, entre outros!</description>
	<lastBuildDate>Wed, 28 Jul 2010 08:47:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mudar de Domínio mas Manter o Tráfego &#8211; HTACCESS Redirect 301</title>
		<link>http://cgoncalves.com/mudar-de-dominio-mas-manter-o-trafego-htaccess-redirect-301/</link>
		<comments>http://cgoncalves.com/mudar-de-dominio-mas-manter-o-trafego-htaccess-redirect-301/#comments</comments>
		<pubDate>Sat, 15 May 2010 19:14:13 +0000</pubDate>
		<dc:creator>Carlos Gonçalves</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[dominio]]></category>
		<category><![CDATA[FollowSymLinks]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://cgoncalves.com/?p=851</guid>
		<description><![CDATA[Mudar de domínio é uma grande decisão, e por vezes muitas pessoas não o fazem com medo de perder tráfego no seu site. Porém é possível, através de um simples ficheiro .htaccess manter os utilizadores, RSS Feed, e tráfego oriundo de motores de pesquisa. Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://novodominio.com/$1 [R=301,L] O ficheiro .htaccess [...]]]></description>
		<wfw:commentRss>http://cgoncalves.com/mudar-de-dominio-mas-manter-o-trafego-htaccess-redirect-301/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[HTACCESS] Prevenir Listagem de Directórios</title>
		<link>http://cgoncalves.com/htaccess-prevenir-listagem-de-directorios/</link>
		<comments>http://cgoncalves.com/htaccess-prevenir-listagem-de-directorios/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 08:30:57 +0000</pubDate>
		<dc:creator>Carlos Gonçalves</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[directorios]]></category>
		<category><![CDATA[estrutura]]></category>
		<category><![CDATA[Indexes]]></category>
		<category><![CDATA[listagem]]></category>
		<category><![CDATA[Options]]></category>

		<guid isPermaLink="false">http://cgoncalves.com/?p=678</guid>
		<description><![CDATA[Prevenir a listagem de directórios do teu site é essencial nos dias de hoje. Se um hacker souber a estrutura do teu site, podes ter acabado de abrir uma porta para o mundo. Sabias que consegues impedir essa mesma listagens por cada directório do teu site, bastando para isso utilizar apenas um ficheiro .htaccess no [...]]]></description>
		<wfw:commentRss>http://cgoncalves.com/htaccess-prevenir-listagem-de-directorios/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[HTACCESS] Montar um Sistema de Templates</title>
		<link>http://cgoncalves.com/htaccess-montar-um-sistema-de-templates/</link>
		<comments>http://cgoncalves.com/htaccess-montar-um-sistema-de-templates/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 06:07:40 +0000</pubDate>
		<dc:creator>Carlos Gonçalves</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[sistema]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://cgoncalves.com/?p=674</guid>
		<description><![CDATA[Criar um site em que a mudança de template seja feita de forma fácil, provavelmente parece complicado. Quando pensei em criar um sistema de templates pensei que ia ser uma tarefa bastante complicada, porém, depois de andar a pensar nisso durante alguns dias, encontrei uma maneira que me permite mudar as templates, bastando para isso [...]]]></description>
		<wfw:commentRss>http://cgoncalves.com/htaccess-montar-um-sistema-de-templates/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>[HTACCESS] Definir a Tua Homepage</title>
		<link>http://cgoncalves.com/htaccess-definir-a-tua-homepage/</link>
		<comments>http://cgoncalves.com/htaccess-definir-a-tua-homepage/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 18:11:35 +0000</pubDate>
		<dc:creator>Carlos Gonçalves</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[DirectoryIndex]]></category>
		<category><![CDATA[homepage]]></category>
		<category><![CDATA[index]]></category>

		<guid isPermaLink="false">http://cgoncalves.com/?p=599</guid>
		<description><![CDATA[Como todo o programador web sabe, o servidor define por defeito para um directório o ficheiro index.{Extensão}. O Apache é geralmente definido pelo index.php ou index.html. É uma boa prática definires o DirectoryIndex no teu ficheiro .htaccess, especialmente se estás a hospedar o site num servidor partilhado. As definições do teu host pode ser alterado [...]]]></description>
		<wfw:commentRss>http://cgoncalves.com/htaccess-definir-a-tua-homepage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[HTACCESS] Verificar Se Módulo está Presente</title>
		<link>http://cgoncalves.com/htaccess-verificar-se-modulo-presente/</link>
		<comments>http://cgoncalves.com/htaccess-verificar-se-modulo-presente/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 10:25:08 +0000</pubDate>
		<dc:creator>Carlos Gonçalves</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[HTTP Error 500 Internal server error]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[urls]]></category>

		<guid isPermaLink="false">http://cgoncalves.com/?p=589</guid>
		<description><![CDATA[Um dos meus módulos favoritos do Apache é o mod_rewrite, pois permite-me manipular os URLs das páginas. Porém, nem todos os servidores Apache têm o módulo mod_rewrite instalado, por este motivo é aconselhável fazer-se sempre uma condição do ficheiro .htaccess para confirmar-mos que o módulo existe. O .HTACCESS &#60;IfModule mod_rewrite.c&#62; RewriteEngine On RewriteBase / RewriteCond [...]]]></description>
		<wfw:commentRss>http://cgoncalves.com/htaccess-verificar-se-modulo-presente/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[HTACCESS] Retirar WWW</title>
		<link>http://cgoncalves.com/htaccess-retirar-www/</link>
		<comments>http://cgoncalves.com/htaccess-retirar-www/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 09:08:34 +0000</pubDate>
		<dc:creator>Carlos Gonçalves</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[remover]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://cgoncalves.com/?p=579</guid>
		<description><![CDATA[Existem alguns benefícios em remover o &#8220;www&#8221; dos URLs: URLs mais pequenos Prevenir penalizações do Google para conteúdo duplicado Menos tráfego consumido se tiveres muitos links numa página Felizmente, retirar o WWW das URLs da página (e consequentemente da listagem do Google), pode ser feito com .htaccess, assim não precisas de ir a cada página [...]]]></description>
		<wfw:commentRss>http://cgoncalves.com/htaccess-retirar-www/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>[HTACCESS] Proteger um Directório com Password</title>
		<link>http://cgoncalves.com/htaccess-proteger-um-directorio-com-password/</link>
		<comments>http://cgoncalves.com/htaccess-proteger-um-directorio-com-password/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 08:22:50 +0000</pubDate>
		<dc:creator>Carlos Gonçalves</dc:creator>
				<category><![CDATA[Segurança]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[directorios]]></category>
		<category><![CDATA[htpasswd]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[proteger]]></category>

		<guid isPermaLink="false">http://cgoncalves.com/?p=421</guid>
		<description><![CDATA[Proteger ficheiros no teu site a utilizadores não autorizados pode ser muito importante. Ainda mais importante, é o método pelo qual esta tarefa é executada. Podes usar PHP para dar autorização (depois do login efectuado) às informações de cada página, mas isso não protege as tuas imagens, documentos, e outros ficheiros, pois não? É por [...]]]></description>
		<wfw:commentRss>http://cgoncalves.com/htaccess-proteger-um-directorio-com-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Estrutura Directórios utilizando mod_rewrite</title>
		<link>http://cgoncalves.com/estrutura-directorios-utilizando-mod_rewrite/</link>
		<comments>http://cgoncalves.com/estrutura-directorios-utilizando-mod_rewrite/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 06:58:55 +0000</pubDate>
		<dc:creator>Carlos Gonçalves</dc:creator>
				<category><![CDATA[Opiniões, Ideias e Dicas]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[directorios]]></category>
		<category><![CDATA[estrutura]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://cgoncalves.com/?p=371</guid>
		<description><![CDATA[Eu tendo a ser muito organizado, ok é obsessão minha, quando crio estruturas de directórios para os sites dos meus clientes. Gosto de usar um ficheiro descritivo e directórios por um leque variado de razões: URLs Search Engine Friendly e nomes de imagens (para pesquisa de imagens) Ficheiro descritivo dá ao utilizador uma &#8220;preview&#8221; da [...]]]></description>
		<wfw:commentRss>http://cgoncalves.com/estrutura-directorios-utilizando-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forçar Páginas Seguras (SSL) com .htaccess</title>
		<link>http://cgoncalves.com/forcar-paginas-seguras-ssl-htaccess/</link>
		<comments>http://cgoncalves.com/forcar-paginas-seguras-ssl-htaccess/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 07:33:59 +0000</pubDate>
		<dc:creator>Carlos Gonçalves</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[forçar]]></category>
		<category><![CDATA[páginas]]></category>
		<category><![CDATA[seguras]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://cgoncalves.com/?p=369</guid>
		<description><![CDATA[Num projecto que tenho estado a desenvolver para um cliente, requer sempre Páginas Seguras (SSL) Se tivéssemos que fazer com PHP seria algo como: &#60; ?php if($_SERVER['SERVER_PORT'] != '443') { header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit(); } ?&#62; Porém, isto torna-se cansativo, e desnecessário. É aqui que entra o .htaccess Basta colocar-mos o seguinte snipet no .htaccess que [...]]]></description>
		<wfw:commentRss>http://cgoncalves.com/forcar-paginas-seguras-ssl-htaccess/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>.htaccess “Em Manutenção” Redireccionamento</title>
		<link>http://cgoncalves.com/htaccess-em-manutencao-redireccionamento/</link>
		<comments>http://cgoncalves.com/htaccess-em-manutencao-redireccionamento/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 12:09:26 +0000</pubDate>
		<dc:creator>Carlos Gonçalves</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[manutenção]]></category>
		<category><![CDATA[redireccionamento]]></category>

		<guid isPermaLink="false">http://cgoncalves.com/?p=346</guid>
		<description><![CDATA[Recentemente, precisei de mover um site a partir de um servidor partilhado para um servidor privado. Após algumas discussões com uns amigos sobre a melhor solução, decidi simplesmente acrescentar uma página &#8220;Site Offline para Manutenção&#8221;, para impedir que os utilizadores efectuassem encomendas durante a mudança. Para tal, utilizei o .htaccess, assim consegui redireccionar todos os [...]]]></description>
		<wfw:commentRss>http://cgoncalves.com/htaccess-em-manutencao-redireccionamento/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
