<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>pretty faces | Muharrem Tığdemir</title>
	<atom:link href="/tag/pretty-faces/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Carpe Diem!!</description>
	<lastBuildDate>Thu, 16 Jan 2014 17:59:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
<site xmlns="com-wordpress:feed-additions:1">120145533</site>	<item>
		<title>JSF, SEO ve PrettyFaces Hakkında</title>
		<link>/jsf-seo-ve-prettyfaces-hakkinda/</link>
					<comments>/jsf-seo-ve-prettyfaces-hakkinda/#respond</comments>
		
		<dc:creator><![CDATA[Muharrem Tığdemir]]></dc:creator>
		<pubDate>Wed, 18 Sep 2013 18:21:10 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[jsf]]></category>
		<category><![CDATA[pretty faces]]></category>
		<category><![CDATA[seo]]></category>
		<guid isPermaLink="false">https://muharremtigdemir.com/wordpress/?p=53</guid>

					<description><![CDATA[<p>Merhaba Arkadaşlar , &#160; Bu yazımda size web sitelerinin en önemli ihtiyaçlarından SEO yu JSF üzerinde kullanmayı anlatacağım. Bunun için PrettyFaces isimli url-rewrite JSF kütüphanesini kullanacağız. &#160; Öncelikle gerekli dosyaları ekleyelim. Kurulum için &#60;dependency&#62; &#60;groupId&#62;org.ocpsoft.rewrite&#60;/groupId&#62; &#60;artifactId&#62;rewrite-servlet&#60;/artifactId&#62; &#60;version&#62;2.0.7.Final&#60;/version&#62; &#60;/dependency&#62; &#60;dependency&#62; &#60;groupId&#62;org.ocpsoft.rewrite&#60;/groupId&#62; &#60;artifactId&#62;rewrite-config-prettyfaces&#60;/artifactId&#62; &#60;version&#62;2.0.7.Final&#60;/version&#62; &#60;/dependency&#62; pom.xml dosyamıza gerekli kütüphaneleri ekleyelim.  Maven kullanımı hakkında daha ayrıntılı bilgi için Maven [&#8230;]</p>
<p>The post <a href="/jsf-seo-ve-prettyfaces-hakkinda/">JSF, SEO ve PrettyFaces Hakkında</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Merhaba Arkadaşlar ,</p>
<p>&nbsp;</p>
<p>Bu yazımda size web sitelerinin en önemli ihtiyaçlarından SEO yu JSF üzerinde kullanmayı anlatacağım. Bunun için <a title="PrettyFaces" href="http://ocpsoft.org/prettyfaces/" target="_blank">PrettyFaces</a> isimli url-rewrite JSF kütüphanesini kullanacağız.</p>
<p>&nbsp;</p>
<p>Öncelikle gerekli dosyaları ekleyelim. Kurulum için</p>
<ol>
<li>
<pre class="lang:xhtml decode:true crayon-selected">&lt;dependency&gt;
    &lt;groupId&gt;org.ocpsoft.rewrite&lt;/groupId&gt;
    &lt;artifactId&gt;rewrite-servlet&lt;/artifactId&gt;
    &lt;version&gt;2.0.7.Final&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.ocpsoft.rewrite&lt;/groupId&gt;
    &lt;artifactId&gt;rewrite-config-prettyfaces&lt;/artifactId&gt;
    &lt;version&gt;2.0.7.Final&lt;/version&gt;
&lt;/dependency&gt;</pre>
<p>pom.xml dosyamıza gerekli kütüphaneleri ekleyelim.  Maven kullanımı hakkında daha ayrıntılı bilgi için <a title="Maven WEb Site" href="http://maven.apache.org/guides/mini/guide-central-repository-upload.html" target="_blank">Maven Web Site</a> buraya bakabilirsiniz.  <span id="more-53"></span></li>
<li>
<pre class="lang:default decode:true">&lt;pretty-config xmlns="http://ocpsoft.org/schema/rewrite-config-prettyfaces" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:schemaLocation="http://ocpsoft.org/schema/rewrite-config-prettyfaces
                      http://ocpsoft.org/xml/ns/prettyfaces/rewrite-config-prettyfaces.xsd"&gt;

        &lt;url-mapping id="watch"&gt;
		&lt;pattern value="/watch" /&gt;
		&lt;view-id value="site/show_video.xhtml" /&gt;
	&lt;/url-mapping&gt;
        &lt;url-mapping id="home"&gt;
		&lt;pattern value="/home" /&gt;
		&lt;view-id value="site/index.xhtml" /&gt;
	&lt;/url-mapping&gt;
        &lt;url-mapping id="profile"&gt;
            &lt;pattern value="/Profile" /&gt;
            &lt;view-id value="site/profile.xhtml" /&gt; 
        &lt;/url-mapping&gt;

&lt;/pretty-config&gt;</pre>
</li>
</ol>
<p>WEB-INF/pretty-config.xml isimli bir dosya oluşturarak içine yukarıdaki kod bloğunu ekleyin.</p>
<p>&nbsp;</p>
<p>Peki Kod bloğu ne iş yapıyor.</p>
<pre class="lang:xhtml decode:true crayon-selected">&lt;url-mapping id="profile"&gt;
&lt;/url-mapping&gt;</pre>
<p>Yukarıdaki bölüm yönelendirmeniz için isim tanımlamanıza yarıyor. Örneğin ben Profil Sayfası için &#8220;profile&#8221; tagını belirledim.</p>
<pre class="lang:xhtml decode:true">  &lt;pattern value="/Profile" /&gt;
  &lt;view-id value="site/profile.xhtml" /&gt;</pre>
<p>Yukarıdaki Kod bloğunda ise pattern ana dizin linkinizden sonra gelecek kısım ;</p>
<p>Örnek Link : localhost/Profile olarak  gelirse bu link : localhost/site/profile.xhtml olarak işlem görecek.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Muharrem Tığdemir</p><p>The post <a href="/jsf-seo-ve-prettyfaces-hakkinda/">JSF, SEO ve PrettyFaces Hakkında</a> first appeared on <a href="">Muharrem Tığdemir</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/jsf-seo-ve-prettyfaces-hakkinda/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">53</post-id>	</item>
	</channel>
</rss>