<?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>4's symfony blog &#187; symfony SEO</title>
	<atom:link href="http://www.foolbirds.com/t/symfony-seo/feed" rel="self" type="application/rss+xml" />
	<link>http://www.foolbirds.com</link>
	<description>all about symfony</description>
	<lastBuildDate>Fri, 14 Oct 2011 12:36:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Symfony的路由规则</title>
		<link>http://www.foolbirds.com/symfony-routing.html</link>
		<comments>http://www.foolbirds.com/symfony-routing.html#comments</comments>
		<pubDate>Fri, 17 Apr 2009 04:17:43 +0000</pubDate>
		<dc:creator>zhuozi</dc:creator>
				<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony SEO]]></category>

		<guid isPermaLink="false">http://www.foolbirds.com/?p=738</guid>
		<description><![CDATA[自己接触的框架算来算去也就Zend和symfony，虽然量级不同，不过有一点都挺好，路由规则的设定。
为什么说好呢？网站做出来就是要被放到互联网上嘛，影响网站点击率的除了网站内容，还有一个很重要的原因就是搜索引擎,
而URL对于搜索引擎来说是判别一个网站权重值的一个指标。
原本这样的URL
www.123.com/search?category=ball
利用路由规则
show_shop_search_category:
  url:  /search/:category
  param: { module: shop ,action:search }

变成了
www.123.com/search/ball
在Symfony中，你可以根据需求随意的设定路由规则，可以在规则中强制写一些动作，利用正则限制要传的参数等等。
感觉这部分的内容很碎，具体问题具体分析，总之可以利用routing.yml这个文件写出对搜索引擎友好的url。
Symfony框架中的“.htaccess”文件和“根”目录如何设置title、keywords]]></description>
			<content:encoded><![CDATA[<p>自己接触的框架算来算去也就Zend和symfony，虽然量级不同，不过有一点都挺好，路由规则的设定。</p>
<p>为什么说好呢？网站做出来就是要被放到互联网上嘛，影响网站点击率的除了网站内容，还有一个很重要的原因就是搜索引擎,</p>
<p>而URL对于搜索引擎来说是判别一个网站权重值的一个指标。</p>
<p>原本这样的URL<br />
<code>www.123.com/search?category=ball</code><br />
利用路由规则<br />
<code>show_shop_search_category:<br />
  url:  /search/:category<br />
  param: { module: shop ,action:search }<br />
</code><br />
变成了<br />
<code>www.123.com/search/ball</code></p>
<p>在Symfony中，你可以根据需求随意的设定路由规则，可以在规则中强制写一些动作，利用正则限制要传的参数等等。<br />
感觉这部分的内容很碎，具体问题具体分析，总之可以利用routing.yml这个文件写出对搜索引擎友好的url。</p>
<ul class="related_post"><li><a href="http://www.foolbirds.com/symfony-htaccess-and-root.html" title="Symfony框架中的“.htaccess”文件和“根”目录">Symfony框架中的“.htaccess”文件和“根”目录</a></li><li><a href="http://www.foolbirds.com/set-title-and-keywords.html" title="如何设置title、keywords">如何设置title、keywords</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.foolbirds.com/symfony-routing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symfony框架中的“.htaccess”文件和“根”目录</title>
		<link>http://www.foolbirds.com/symfony-htaccess-and-root.html</link>
		<comments>http://www.foolbirds.com/symfony-htaccess-and-root.html#comments</comments>
		<pubDate>Thu, 25 Dec 2008 06:08:43 +0000</pubDate>
		<dc:creator>zhuozi</dc:creator>
				<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony SEO]]></category>

		<guid isPermaLink="false">http://symfony.bobhero.net/?p=245</guid>
		<description><![CDATA[大家使用php的框架来进行开发，有的时候可能会直接调用跟目录的文件而不是触发某个动作，可是由于MVC思想的缘故，会把url中的filename看作成某个action.当然，你肯定不愿意为了实现这个而特意去写一个action.
如果你做过website的sitemap,应该会了解，google建议的格式是xml，而yahoo建议的格式是txt，如何能让搜索引擎或者用户直接可以访问跟目录的文件呢？这个时候我们就需要用到.htaccess文件，把我们想直接访问的文件类型，写在.htaccess文件中。
而在symfony你基本上不用去特意修改.htaccess文件，只要把你想要直接访问的文件放在web文件夹下面就可以了，在symfony里web相当于“根”目录。
Symfony的路由规则如何设置title、keywords]]></description>
			<content:encoded><![CDATA[<p>大家使用php的框架来进行开发，有的时候可能会直接调用跟目录的文件而不是触发某个动作，可是由于MVC思想的缘故，会把url中的filename看作成某个action.当然，你肯定不愿意为了实现这个而特意去写一个action.</p>
<p>如果你做过website的sitemap,应该会了解，google建议的格式是xml，而yahoo建议的格式是txt，如何能让搜索引擎或者用户直接可以访问跟目录的文件呢？这个时候我们就需要用到.htaccess文件，把我们想直接访问的文件类型，写在.htaccess文件中。</p>
<p>而在symfony你基本上不用去特意修改.htaccess文件，只要把你想要直接访问的文件放在web文件夹下面就可以了，在symfony里web相当于“根”目录。</p>
<ul class="related_post"><li><a href="http://www.foolbirds.com/symfony-routing.html" title="Symfony的路由规则">Symfony的路由规则</a></li><li><a href="http://www.foolbirds.com/set-title-and-keywords.html" title="如何设置title、keywords">如何设置title、keywords</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.foolbirds.com/symfony-htaccess-and-root.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何设置title、keywords</title>
		<link>http://www.foolbirds.com/set-title-and-keywords.html</link>
		<comments>http://www.foolbirds.com/set-title-and-keywords.html#comments</comments>
		<pubDate>Tue, 16 Dec 2008 02:06:37 +0000</pubDate>
		<dc:creator>zhuozi</dc:creator>
				<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony SEO]]></category>

		<guid isPermaLink="false">http://symfony.bobhero.net/?p=22</guid>
		<description><![CDATA[在Actions里面，设置页面的title、keywords]]></description>
			<content:encoded><![CDATA[<pre class="php" name='code'>//声明
$response = $this-&gt;getResponse();
//设置title
$response-&gt;setTitle($this-&gt;getContext()-&gt;getI18N()-&gt;__('Welcomt to visit website'));
//设置keywords
$response-&gt;addMeta('keywords', 'home');</pre>
<ul class="related_post"><li><a href="http://www.foolbirds.com/symfony-routing.html" title="Symfony的路由规则">Symfony的路由规则</a></li><li><a href="http://www.foolbirds.com/symfony-htaccess-and-root.html" title="Symfony框架中的“.htaccess”文件和“根”目录">Symfony框架中的“.htaccess”文件和“根”目录</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.foolbirds.com/set-title-and-keywords.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

