<?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>/blog &#187; .htaccess</title>
	<atom:link href="http://www.franklinjr.com/blog/index.php/category/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.franklinjr.com/blog</link>
	<description></description>
	<lastBuildDate>Sun, 29 Aug 2010 13:31:21 +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>Proteger diretório com .htaccess no apache</title>
		<link>http://www.franklinjr.com/blog/index.php/2008/11/30/proteger-diretorio-com-htaccess-no-apache/</link>
		<comments>http://www.franklinjr.com/blog/index.php/2008/11/30/proteger-diretorio-com-htaccess-no-apache/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 12:33:39 +0000</pubDate>
		<dc:creator>franklin</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[proteger diretório]]></category>
		<category><![CDATA[protegido]]></category>

		<guid isPermaLink="false">http://www.franklinjr.com/blog/index.php/2008/11/30/proteger-diretorio-com-htaccess-no-apache/</guid>
		<description><![CDATA[Bah, ainda não tinha postado isso, putz, mas então, pra proteger um diretório crie um arquivo de texto chamado .htaccess e cole o seguinte conteúdo nele: AuthType Basic AuthName &#8220;Protegido&#8221; AuthUserFile /home/blablabla/public_html/teste/.htpasswd require valid-user onde /home/blablabla/public_html/teste deve ser o caminho físico do servidor do diretório onde tu quer proteger, feito isso, por ssh tu digita [...]]]></description>
			<content:encoded><![CDATA[<p>Bah, ainda não tinha postado isso, putz, mas então, pra proteger um diretório crie um arquivo de texto chamado .htaccess e cole o seguinte conteúdo<span id="more-192"></span> nele:</p>
<p><span style="color: #008000;">AuthType Basic<br />
AuthName &#8220;Protegido&#8221;<br />
AuthUserFile /home/blablabla/public_html/teste/.htpasswd<br />
require valid-user</span></p>
<p>onde <span style="color: #008000;">/home/blablabla/public_html/teste<span style="color: #000000;"> deve ser o caminho físico do servidor do diretório onde tu quer proteger, feito isso, por ssh tu digita esse comando na tua conta, no mesmo diretório que tu quer proteger, no caso /home/blablabla/public_html/teste:</span></span></p>
<p><span style="color: #008000;">htpasswd -c .htpasswd username_desejado</span></p>
<p>detalhe importante, esse comando diz mais ou menos assim, cria um arquivo chamado .htpasswd <span style="color: #ff0000;">ZERADO</span> (-c) com o username_desejado. Agora, se tu quiser proteger o diretório com mais de um usuário, tu digita o comando acima para o PRIMEIRO usuário, nos demais o comando deve ser</p>
<p><span style="color: #008000;">htpasswd .htpasswd usuario_desejado</span></p>
<p>sem o -c, porque o -c ele vai criar um novo arquivo apagando o atual com o que já tem os usuários cadastrados.</p>
<p>E é isso aí <img src='http://www.franklinjr.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.franklinjr.com/blog/index.php/2008/11/30/proteger-diretorio-com-htaccess-no-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alterar include_patch no php.ini com htaccess</title>
		<link>http://www.franklinjr.com/blog/index.php/2008/06/30/alterar-include_patch-no-phpini-com-htaccess/</link>
		<comments>http://www.franklinjr.com/blog/index.php/2008/06/30/alterar-include_patch-no-phpini-com-htaccess/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 19:03:57 +0000</pubDate>
		<dc:creator>franklin</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[caminho]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[mudar]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://www.franklinjr.com/blog/index.php/2008/06/30/alterar-include_patch-no-phpini-com-htaccess/</guid>
		<description><![CDATA[Só funciona em servidor apache. Crie um arquivo de texto chamado .htaccess com o seguinte conteúdo: #mudar caminho do include_patch php_value include_path /teu/novo/patch onde &#8220;/teu/novo/patch&#8221; é o novo caminho]]></description>
			<content:encoded><![CDATA[<p>Só funciona em servidor apache. Crie um arquivo de texto chamado .htaccess com o seguinte conteúdo:</p>
<p><font color="#008000">#mudar caminho do include_patch<br />
</font> <font color="#008000"> php_value include_path /teu/novo/patch</font></p>
<p>onde &#8220;/teu/novo/patch&#8221; é o novo caminho</p>
]]></content:encoded>
			<wfw:commentRss>http://www.franklinjr.com/blog/index.php/2008/06/30/alterar-include_patch-no-phpini-com-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bloquear hotlink com htaccess</title>
		<link>http://www.franklinjr.com/blog/index.php/2008/05/22/bloquear-hotlink-com-htaccess/</link>
		<comments>http://www.franklinjr.com/blog/index.php/2008/05/22/bloquear-hotlink-com-htaccess/#comments</comments>
		<pubDate>Thu, 22 May 2008 13:54:52 +0000</pubDate>
		<dc:creator>franklin</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Utilidades]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[bloquear]]></category>
		<category><![CDATA[hotlink]]></category>
		<category><![CDATA[imagem]]></category>
		<category><![CDATA[imagens]]></category>
		<category><![CDATA[outro]]></category>
		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://www.franklinjr.com/blog/index.php/2008/05/22/bloquear-hotlink-com-htaccess/</guid>
		<description><![CDATA[Para proteger imagens do teu site para que outros sites não utilizem teus arquivos, crie um arquivo .htaccess com o seguinte conteúdo: Lembrando que essa configuração só funcionará para servidores apache. RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?teusite.com.br/.*$ [NC] RewriteRule \.(gif&#124;jpg&#124;jpeg&#124;bmp&#124;png)$ http://www.teusite.com.br/hotlink.gif [R,L] Tecla sap ON: &#8220;RewriteCond %{HTTP_REFERER} !^http://(www\.)?teusite.com.br/.*$ [NC]&#8220; essa linha diz quem [...]]]></description>
			<content:encoded><![CDATA[<p>Para proteger imagens do teu site para que outros sites não utilizem teus arquivos, crie um arquivo .htaccess com o seguinte conteúdo:</p>
<p>Lembrando que essa configuração só funcionará para servidores apache.</p>
<p><font color="#008000">RewriteEngine on<br />
RewriteCond %{HTTP_REFERER}    !^$<br />
RewriteCond %{HTTP_REFERER} !^http://(www\.)?teusite.com.br/.*$ [NC]<br />
RewriteRule \.(gif|jpg|jpeg|bmp|png)$ http://www.teusite.com.br/hotlink.gif [R,L]</font></p>
<p><font color="#000000">Tecla sap ON:<br />
</font></p>
<p><font color="#008000">&#8220;RewriteCond %{HTTP_REFERER} !^http://(www\.)?teusite.com.br/.*$ [NC]&#8220;</font></p>
<p>essa linha diz quem vai ter acesso as tuas imagens, então tu pode definir quais sites poderão copiar as imagens do teu site.</p>
<p><font color="#008000">RewriteEngine on<br />
RewriteCond %{HTTP_REFERER}    !^$<br />
RewriteCond %{HTTP_REFERER} !^http://(www\.)?teusite.com.br/.*$ [NC]<br />
RewriteCond %{HTTP_REFERER} !^http://(www\.)?google.com.br/.*$ [NC]<br />
RewriteRule \.(gif|jpg|jpeg|bmp|png)$ http://www.teusite.com.br/hotlink.gif [R,L]</font></p>
<p>Agora o google tem permissão para copiar as imagens do teu site <img src='http://www.franklinjr.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>E essa linha é a linha do endereço de onde estará a imagem que irá aparecer no site de quem pegar tuas imagens:</p>
<p><font color="#008000"> RewriteRule \.(gif|jpg|jpeg|bmp|png)$ http://www.teusite.com.br/hotlink.gif [R,L]</font></p>
<p>E é isso aí</p>
]]></content:encoded>
			<wfw:commentRss>http://www.franklinjr.com/blog/index.php/2008/05/22/bloquear-hotlink-com-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP error no upload no WordPress 2.5?</title>
		<link>http://www.franklinjr.com/blog/index.php/2008/05/01/http-error-no-upload-no-wordpress-25/</link>
		<comments>http://www.franklinjr.com/blog/index.php/2008/05/01/http-error-no-upload-no-wordpress-25/#comments</comments>
		<pubDate>Thu, 01 May 2008 15:12:58 +0000</pubDate>
		<dc:creator>franklin</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Utilidades]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://www.franklinjr.com/blog/index.php/2008/05/01/http-error-no-upload-no-wordpress-25/</guid>
		<description><![CDATA[Tá tentando enviar um arquivo pelo wordpress 2.5 e tá dando erro mesmo com as permissões corretas nos diretórios? HTTP error An error occurred in the upload. Please try again later Eis a solução, baixe o arquivo .htaccess do seu blog e adicione as seguintes linhas no começo do arquivo: &#60;IfModule mod_security.c&#62; &#60;Files async-upload.php&#62; SecFilterEngine [...]]]></description>
			<content:encoded><![CDATA[<p>Tá tentando enviar um arquivo pelo wordpress 2.5 e tá dando erro mesmo com as permissões corretas nos diretórios?</p>
<p>HTTP error</p>
<p>An error occurred in the upload. Please try again later</p>
<p style="text-align: center"><img src="http://www.franklinjr.com/blog/wp-content/uploads/2008/05/erroupload.jpg" alt="erroupload.jpg" /></p>
<p>Eis a solução, baixe o arquivo .htaccess do seu blog e adicione as seguintes linhas no começo do arquivo:</p>
<p><font color="#008000">&lt;IfModule mod_security.c&gt;<br />
&lt;Files async-upload.php&gt;<br />
SecFilterEngine Off<br />
SecFilterScanPOST Off<br />
&lt;/Files&gt;<br />
&lt;/IfModule&gt;</font></p>
<p>Salve o .htaccess e envie novamente para o servidor e tente fazer um novo upload.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.franklinjr.com/blog/index.php/2008/05/01/http-error-no-upload-no-wordpress-25/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Redirecionamento com htaccess</title>
		<link>http://www.franklinjr.com/blog/index.php/2008/03/05/redirecionamento-com-htaccess/</link>
		<comments>http://www.franklinjr.com/blog/index.php/2008/03/05/redirecionamento-com-htaccess/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 13:05:38 +0000</pubDate>
		<dc:creator>franklin</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[redirecionar]]></category>

		<guid isPermaLink="false">http://www.franklinjr.com/blog/index.php/2008/03/05/redirecionamento-com-htaccess/</guid>
		<description><![CDATA[Cole o código abaixo em um arquivo .htaccess e envie para o ftp do seu site. # Redirecionamento Redirect endereço_de_origem endereço_de_destino por exemplo, tenho o endereço franklinjr.kinghost.net/wordpress, criei um .htacces lá que quando alguém acessar franklinjr.kinghost.net/wordpress redireciona pro endereço www.franklinjr.com, então a linha no .htaccess de lá ficou Redirect /wordpress http://www.franklinjr.com]]></description>
			<content:encoded><![CDATA[<p>Cole o código abaixo em um arquivo .htaccess e envie para o ftp do seu site.</p>
<p><font color="#008000"># Redirecionamento<br />
Redirect endereço_de_origem endereço_de_destino</font></p>
<p>por exemplo, tenho o endereço <a href="http://franklinjr.kinghost.net/wordpress">franklinjr.kinghost.net/wordpress</a>, criei um .htacces lá que quando alguém acessar  <a href="http://franklinjr.kinghost.net/wordpress">franklinjr.kinghost.net/wordpress</a> redireciona pro endereço <a href="http://www.franklinjr.com">www.franklinjr.com</a>, então a linha no .htaccess de lá ficou</p>
<p>Redirect /wordpress http://www.franklinjr.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.franklinjr.com/blog/index.php/2008/03/05/redirecionamento-com-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Desabilitando / habilitando o registro global do php</title>
		<link>http://www.franklinjr.com/blog/index.php/2008/03/04/desabilitando-habilitando-o-registro-global-do-php/</link>
		<comments>http://www.franklinjr.com/blog/index.php/2008/03/04/desabilitando-habilitando-o-registro-global-do-php/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 00:06:17 +0000</pubDate>
		<dc:creator>franklin</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://www.franklinjr.com/blog/index.php/2008/03/04/desabilitando-habilitando-o-registro-global-do-php/</guid>
		<description><![CDATA[Se seu site estiver hospedado em um servidor apache, crie um arquivo .htaccess, e envie para a raiz do seu site, com o seguinte conteúdo: # Para desabilitar o register_globals do PHP: php_flag register_globals off ou # Para habilitar o register_globals do PHP php_flag register_globals on]]></description>
			<content:encoded><![CDATA[<p>Se seu site estiver hospedado em um servidor apache, crie um arquivo .htaccess, e envie para a raiz do seu site, com o seguinte conteúdo:</p>
<p><font color="#008000"># Para desabilitar o register_globals do PHP:<br />
php_flag register_globals off</font></p>
<p>ou</p>
<p><font color="#008000"># Para habilitar o register_globals do PHP</font><br />
<font color="#008000">php_flag register_globals on </font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.franklinjr.com/blog/index.php/2008/03/04/desabilitando-habilitando-o-registro-global-do-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alterar o nome da página principal do site</title>
		<link>http://www.franklinjr.com/blog/index.php/2008/03/01/alterar-o-nome-da-pagina-principal-do-site/</link>
		<comments>http://www.franklinjr.com/blog/index.php/2008/03/01/alterar-o-nome-da-pagina-principal-do-site/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 00:47:12 +0000</pubDate>
		<dc:creator>franklin</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[alterar]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[servidor apache]]></category>
		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://www.franklinjr.com/blog/index.php/2008/03/01/alterar-o-nome-da-pagina-principal-do-site/</guid>
		<description><![CDATA[Para alterar o arquivo principal do site para o que quiser, utilize o código abaixo: DirectoryIndex afude.htm beleza.php uhuuu.asp No caso a cima os arquivos principais do site serão afude.htm, beleza.php e uhuuu.asp, se na raiz do diretório não tiver o afude.htm, ele vai procura o beleza.php, senão tiver ele, o .htaccess buscará o uhuuu.asp, [...]]]></description>
			<content:encoded><![CDATA[<p>Para alterar o arquivo principal do site para o que quiser, utilize o código abaixo:</p>
<pre><font color="#339966">DirectoryIndex afude.htm beleza.php uhuuu.asp</font></pre>
<p>No caso a cima os arquivos principais  do site  serão  afude.htm, beleza.php  e uhuuu.asp,  se na raiz do diretório não tiver o afude.htm, ele vai procura o beleza.php, senão tiver ele, o .htaccess buscará o uhuuu.asp, senão tiver também, aí sim ele buscará o index.htm.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.franklinjr.com/blog/index.php/2008/03/01/alterar-o-nome-da-pagina-principal-do-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bloqueando listagem de diretório com .htaccess</title>
		<link>http://www.franklinjr.com/blog/index.php/2008/02/26/bloqueando-listagem-de-diretorio-com-htaccess/</link>
		<comments>http://www.franklinjr.com/blog/index.php/2008/02/26/bloqueando-listagem-de-diretorio-com-htaccess/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 01:50:41 +0000</pubDate>
		<dc:creator>franklin</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[bloquear]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[listagem de diretório]]></category>
		<category><![CDATA[servidor]]></category>

		<guid isPermaLink="false">http://www.franklinjr.com/blog/index.php/2008/02/26/bloqueando-listagem-de-diretorio-com-htaccess/</guid>
		<description><![CDATA[Crie um arquivo de texto chamado .htaccess, insira o conteúdo abaixo, salve-o e envie-o para a raiz do seu site. Options -Indexes]]></description>
			<content:encoded><![CDATA[<p>Crie um arquivo de texto chamado .htaccess, insira o conteúdo abaixo, salve-o e envie-o para a raiz do seu site.</p>
<pre><font color="#008000">Options -Indexes</font></pre>
<pre></pre>
<pre> <img src='http://www.franklinjr.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.franklinjr.com/blog/index.php/2008/02/26/bloqueando-listagem-de-diretorio-com-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configurando erro 404 em servidores Apache</title>
		<link>http://www.franklinjr.com/blog/index.php/2008/02/24/configurando-erro-404-em-servidores-apache/</link>
		<comments>http://www.franklinjr.com/blog/index.php/2008/02/24/configurando-erro-404-em-servidores-apache/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 18:01:43 +0000</pubDate>
		<dc:creator>franklin</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[erro]]></category>
		<category><![CDATA[erro personalizado]]></category>
		<category><![CDATA[servidor]]></category>

		<guid isPermaLink="false">http://www.franklinjr.com/blog/index.php/2008/02/24/configurando-erro-404-em-servidores-apache/</guid>
		<description><![CDATA[Crie um arquivo .htaccess com o seguinte conteúdo: ErrorDocument 404 /erro.htm Onde o arquivo erro.htm é a página do erro que será exibido]]></description>
			<content:encoded><![CDATA[<p>Crie um arquivo .htaccess com o seguinte conteúdo:</p>
<pre><font color="#008000">ErrorDocument 404 /erro.htm</font></pre>
<p>Onde o arquivo erro.htm é a página do erro que será exibido</p>
]]></content:encoded>
			<wfw:commentRss>http://www.franklinjr.com/blog/index.php/2008/02/24/configurando-erro-404-em-servidores-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Desabilitar sensitive key no apache com .htacces</title>
		<link>http://www.franklinjr.com/blog/index.php/2008/01/24/desabilitar-sensitive-key-no-apache-com-htacces/</link>
		<comments>http://www.franklinjr.com/blog/index.php/2008/01/24/desabilitar-sensitive-key-no-apache-com-htacces/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 22:16:36 +0000</pubDate>
		<dc:creator>franklin</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://www.franklinjr.com/blog/index.php/2008/01/24/desabilitar-sensitive-key-no-apache-com-htacces/</guid>
		<description><![CDATA[Crie um arquivo .htaccess e insira na raiz do seu site com o seguinte conteúdo: # Desabilitar diferenças de arquivos com letras maiúsculas e minúsculas em links: CheckSpelling On]]></description>
			<content:encoded><![CDATA[<p>Crie um arquivo .htaccess e insira na raiz do seu site com o seguinte conteúdo:<br />
<span style="color: #008000;"># Desabilitar diferenças de arquivos com letras maiúsculas e minúsculas em links:<br />
CheckSpelling On</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.franklinjr.com/blog/index.php/2008/01/24/desabilitar-sensitive-key-no-apache-com-htacces/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
