<?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>老猫博客 &#187; htaccess</title>
	<atom:link href="http://laomao.info/teg/htaccess/feed" rel="self" type="application/rss+xml" />
	<link>http://laomao.info</link>
	<description>Zen Cart,Magento&#124;外贸建站技术支持-http://laomao.info</description>
	<lastBuildDate>Fri, 02 Sep 2011 07:33:45 +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>使用 .htaccess 提高 WordPress 的安全性和可用性</title>
		<link>http://laomao.info/archives/1416.html</link>
		<comments>http://laomao.info/archives/1416.html#comments</comments>
		<pubDate>Sat, 28 Aug 2010 11:15:39 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[zen-cart]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=1416</guid>
		<description><![CDATA[1. 保护 .htaccess 自身的安全性阻止用户通过读取和写入 .htaceess 来更改服务器安全性的设置。 &#60;files .htaccess&#62; order allow,deny deny from all &#60;/files&#62; 2. 隐藏服务器的数字签名隐藏服务器的数字签名之后，入侵者将很难有机会找到安全漏洞，因为他们不知道背后的服务器是什么。 ServerSignature Off 3. 限制上传文件的大小这个能够帮助阻止 DoS 攻击（用户通过上传巨大的文件来冲垮服务器）并且能够节约带宽。 LimitRequestBody 10240000 # limit file uploads to 10mb 4. 停止 mod_security 过滤器这是一个可选的设置并且要小心处理。这些指令告诉服务器不要使用 mod_security 过滤器，因为 mod_security 过滤器不允许用户发表含有这些单词 “curl”，“lynx” 或者 “wget” 等等单词的文章。这个看起来有点琐碎，但是这个让一些站点头痛，因为这些单词几乎那些站点每天都会用到。 SecFilterInheritance Off 5. 保护 wp-config.php 文件我们可以通过 .htaccess 文件阻止用户读取和写入 WordPress 的配置文件。这个指令假设 WordPress 是安装在根目录。 &#60;files [...]]]></description>
		<wfw:commentRss>http://laomao.info/archives/1416.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>htaccess设置301从老域名跳转到新域名</title>
		<link>http://laomao.info/archives/1397.html</link>
		<comments>http://laomao.info/archives/1397.html#comments</comments>
		<pubDate>Sun, 15 Aug 2010 14:24:08 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[域名跳转]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=1397</guid>
		<description><![CDATA[换了好几次的域名了，需要把原来的域名和现在的不带WWW的域名转向到带WWW的域名上，网上看了下好多方法， dns的url转发，html的跳转，asp,jsp,php ，.htaccess,在此我用的是.htaccess， 所以只说明下.htaccess的多域名转向到新域名问题。头先做好了.htaccess，但是升级网站后.htaccess文件变成默认的了，所以说明做共享记录下来。 换域名，必须要做的就是使用301将老域名跳转到新域名，并且要持续一段时间，这样，老域名的收录，PR之类的网站信息，才会慢慢转移到域名！ 基本上用到的301转向使用方法: Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^laomao.info [NC] RewriteRule ^(.*)$ http://www.laomao.info/$1 [L,R=301] RewriteBase / 把以上代码加入到.htaccess“&#60;IfModule mod_rewrite.c&#62;”下面,如果有重复的话就给删除掉。 如果有多个域名我们这么写: Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^www.1122.cn [OR] RewriteCond %{HTTP_HOST} ^1122.cn [OR] RewriteCond %{HTTP_HOST} ^www.3344.com [OR] RewriteCond %{HTTP_HOST} ^3344.com [OR] RewriteCond %{HTTP_HOST} ^laomao.info$ [NC] RewriteRule ^(.*)$ http://www.laomao.info/$1 [L,R=301] RewriteBase / 记得把laomao.info和www.laomao.info等替换成自己的域名。 把以上内容保存到.htaccess即可。[OR]就是“或”，如果来路是laomao.info或www.3344.com等，那么就跳转到www.laomao.info，别忘了更改成你自己的地址！ [...]]]></description>
		<wfw:commentRss>http://laomao.info/archives/1397.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>利用.htaccess禁止某个或者某些IP访问</title>
		<link>http://laomao.info/archives/757.html</link>
		<comments>http://laomao.info/archives/757.html#comments</comments>
		<pubDate>Fri, 06 Nov 2009 10:33:49 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[zen-cart]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=757</guid>
		<description><![CDATA[原来有写过一个，不过 那个有点含糊不太清楚，现在重新写一个 在网站的根目录里设置一个以.htaccess的htaccess文件 然后，在文件里 随便哪一个地方，不过，尽量不要断开其他的语句（如果有的话） 而且在修改的时候，要先备份原来的文件！ 输入: order deny,allow   这些语句要在英文输入法下输入，尤其是那个逗号 allow from 192.168.0.1     这一行是允许访问的IP allow from 192.168.0.2    这一行是允许访问的IP allow from 192.168.0.3     这一行是允许访问的IP deny from 192.168.0.4     这一行是禁止访问的IP 以上有颜色的不用输入！ 想知道更多的国家代码段 请访问 http://laomao.info/index.php/internet/htaccess-xian-zhi-ip.html]]></description>
		<wfw:commentRss>http://laomao.info/archives/757.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用.htaccess功能限制中国的IP地址访问您的网站</title>
		<link>http://laomao.info/archives/603.html</link>
		<comments>http://laomao.info/archives/603.html#comments</comments>
		<pubDate>Wed, 16 Sep 2009 03:28:28 +0000</pubDate>
		<dc:creator>老猫</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Zen cart]]></category>
		<category><![CDATA[互联网]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[ip限制]]></category>
		<category><![CDATA[限制访问]]></category>

		<guid isPermaLink="false">http://laomao.info/?p=603</guid>
		<description><![CDATA[经常有朋友问如何屏蔽某个国家、地区的用户访问网站。下面这个网站，可以选择生成.htaccess文件，上传到您的网站后，就能屏蔽某个国家、地区的用户了 http://www.blockacountry.com/ 那假如想把中国给屏蔽了 而只有自己可以登陆后台如何实现呢 我是说不通过.htaccess 用代码实现 不知道能不能实现呢? 大家可以这样:在.htaccess中可以除去自己的IP，例如： ErrorDocument 403 http://laomao.info &#60;&#8211;这一行可有可无，表达的意思就是在不被允许的IP段打开的时候会跳到这个网页上去 order deny，allow &#60;&#8211; 注意这里的写法，要在英文输入法下书写完成 allow from 220.249.1.2 &#60;&#8211; 这里输入自己的IP或IP段，被允许访问 allow from 220.250.3.0/24 &#60;&#8211; 这里输入自己的IP或IP段，被允许访问 deny from 58.14.0.0/15   &#60;&#8211;被拒绝访问的IP段 deny from 58.16.0.0/16   &#60;&#8211;被拒绝访问的IP段 &#8230;.. &#8212;&#8212;&#8212;&#8211; 简便一点的生成 .htaccess 的网站有 http://www.blockacountry.com/ 注：只要把生成出来的文档下载下来，上传到你网站的根目录并且改名为 .htaccess 即可，如果你根目录下原本就有这个文件，请不要覆盖，下载原有的 .htaccess 把代码添加进去即可。 比如你限制了中国 IP ,但是你自己也在中国，那怎么办？有个办法就是在 .htaccess 里允许你的IP访问，具体的方法如下： 1 2 3 [...]]]></description>
		<wfw:commentRss>http://laomao.info/archives/603.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

