<?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"
	>

<channel>
	<title>terrefertili.net</title>
	<atom:link href="http://www.terrefertili.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.terrefertili.net</link>
	<description>La telematica contro il digital divide</description>
	<pubDate>Fri, 06 Mar 2009 07:56:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>(Italiano) Tutti i siti per inviare sms gratis</title>
		<link>http://www.terrefertili.net/en/2009/03/tutti-i-siti-per-inviare-sms-gratis/</link>
		<comments>http://www.terrefertili.net/en/2009/03/tutti-i-siti-per-inviare-sms-gratis/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 07:56:13 +0000</pubDate>
		<dc:creator>liotren</dc:creator>
		
		<category><![CDATA[guide]]></category>

		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://www.terrefertili.net/?p=421</guid>
		<description><![CDATA[Sorry, this entry is only available in Italiano.
]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="/feed/">Italiano</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrefertili.net/en/2009/03/tutti-i-siti-per-inviare-sms-gratis/feed/</wfw:commentRss>
		</item>
		<item>
		<title>(Italiano) 13 Consigli Per Impedire Che La Tua Newsletter Sia Filtrata, Bloccata O Considerata Spam</title>
		<link>http://www.terrefertili.net/en/2008/12/13-consigli-per-impedire-che-la-tua-newsletter-sia-filtrata-bloccata-o-considerata-spam/</link>
		<comments>http://www.terrefertili.net/en/2008/12/13-consigli-per-impedire-che-la-tua-newsletter-sia-filtrata-bloccata-o-considerata-spam/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 06:45:15 +0000</pubDate>
		<dc:creator>liotren</dc:creator>
		
		<category><![CDATA[guide]]></category>

		<guid isPermaLink="false">http://www.terrefertili.net/?p=413</guid>
		<description><![CDATA[Sorry, this entry is only available in Italiano.
]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="/feed/">Italiano</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrefertili.net/en/2008/12/13-consigli-per-impedire-che-la-tua-newsletter-sia-filtrata-bloccata-o-considerata-spam/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PageRank (almost) without secrets</title>
		<link>http://www.terrefertili.net/en/2008/11/il-pagerank-senza-segreti-o-quasi/</link>
		<comments>http://www.terrefertili.net/en/2008/11/il-pagerank-senza-segreti-o-quasi/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 08:24:34 +0000</pubDate>
		<dc:creator>liotren</dc:creator>
		
		<category><![CDATA[guide]]></category>

		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.terrefertili.net/2008/11/il-pagerank-senza-segreti-o-quasi/</guid>
		<description><![CDATA[A live chat on Google Groups reveals a little bit more on system used to calculate the weight of a web page in the search engine most used network 
Google PageRank has a few less secrecy in a session of Q &#38; A group of Google Webmaster Help held in the last days of October, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A live chat on Google Groups reveals a little bit more on system used to calculate the weight of a web page in the search engine most used network </strong></p>
<p>Google PageRank has a few less secrecy in a session of Q &amp; A group of Google Webmaster Help held in the last days of October, Matt Cutts, Mail Ohye and other Google-man responded to the questions of users and (just) the webmaster spigolose some questions about how to ranking web pages used on system most famous mathematician of the Internet.</p>
<p>The session did not lead to the publication of anything transcendental or PageRank is also in itself a carrier of universal truth unknown to most people, that is a trademark patented and documented. But the responses collected are used to dissolve some doubts about what really counts to climb the rankings of approval of the mega-cervellone mathematical Google. And to help generate other, to put it across.</p>
<p>Among the more interesting responses there is such as to ensure the maintenance of the PageRank of the pages in case of errors HTML 301, namely a permanent redirect the URL to a new destination. PageRank remains the same even if redirect recursive, but whereas the standard HTML 1.0 will grant up to 5 in the series is not to exaggerate the case.</p>
<p>The PageRank is then calculated differently in each language ecosystem when the content is translated, say the people of Google, and this will probably not be a Q &amp; A to dispel any doubts about that. The search algorithm in the indices of Mountain View is changed often? And how often? &#8220;Both&#8221; is the predictable response, last year, tweak it amounted to more than 450.</p>
<p>Count the speed with which a page is loaded in the calculation of PageRank? Yes, probably counts a lot, even if the Google-man does not say so explicitly. Like say, between the lines, that if a blog post has many comments is ranked first in search results and links are not present on a site destination URLs of these links within varranno index calculated on based on PageRank.</p>
<p>Among the considerations are less clear there is the question of &#8220;if&#8221; and &#8220;if so, as&#8221; virtual age of a website influence its position in the research. In this case, the G-man first argue that &#8216;yes, if your domain has been credible for years it can help &#8220;and that buying a new domain, move their own content and hope to have the same PageRank is always mere utopia . Then, however, expressed as contradicting earlier revealed that &#8220;in most cases it does not matter, because we have the best information, not just those older.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrefertili.net/en/2008/11/il-pagerank-senza-segreti-o-quasi/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How To Transfer Domain Name to New Registrar</title>
		<link>http://www.terrefertili.net/en/2008/11/how-to-transfer-domain-name-to-new-registrar/</link>
		<comments>http://www.terrefertili.net/en/2008/11/how-to-transfer-domain-name-to-new-registrar/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 07:05:52 +0000</pubDate>
		<dc:creator>liotren</dc:creator>
		
		<category><![CDATA[guide]]></category>

		<category><![CDATA[domini]]></category>

		<guid isPermaLink="false">http://www.terrefertili.net/2008/11/how-to-transfer-domain-name-to-new-registrar/</guid>
		<description><![CDATA[If you have more than one domain name, consolidating to a single registrar is a preferred approach. This article will explain the high level steps to transfer a domain name from one registrar to another. In this example, I transfered a domain name from Network Solutions (current registrar) to Go Daddy (new registrar).
1. Purchase and [...]]]></description>
			<content:encoded><![CDATA[<p>If you have more than one domain name, consolidating to a single registrar is a preferred approach. This article will explain the high level steps to transfer a domain name from one registrar to another. In this example, I transfered a domain name from Network Solutions (current registrar) to Go Daddy (new registrar).</p>
<h3>1. Purchase and request domain transfer at the new registrar</h3>
<p>When you purchase a domain transfer, some of the registrars may let you to keep all the time remaining on your existing registration, plus you may get a FREE 1-year extension. After the payment is processed, the status of the domain at the new registrar will be set to Authorization Required. You will also receive an email from the new registrar containing Transaction ID and Security Code.</p>
<h3>2. Request authorization code at current registrar.</h3>
<p>Login to your current registrar account and request for “authorization code request”.  You have to turn off the domain protection before you can request authorization code from the current registrar. Following screen shows the link from my current registrar that gave the option to request authorization code.</p>
<p><a href="http://www.thegeekstuff.com/wp-content/uploads/2008/07/1-request-authorization-code.jpg"><img class="aligncenter size-full wp-image-94" title="Request Authorization Code" src="http://www.thegeekstuff.com/wp-content/uploads/2008/07/1-request-authorization-code.jpg" alt="Request Authorization Code" width="500" height="107" /></a></p>
<h3>3. Authorization code received from current registrar.</h3>
<p>You’ll receive an email from current registrar with Authorization code.</p>
<pre>We received your authorization code request on 07/02/2008
for your domain name thegeekstuff.com.
Your authorization code is: 12345678911</pre>
<h3>4. Begin the transfer from the new registrar using the authorization code.</h3>
<p>Go to the new registrar and begin the transfer process. At this stage, the new registrar will display the Status as “Authorization required” and the Recommended Action as “Authorization - Begin transfer authorization”</p>
<p style="text-align: center;"><a href="http://www.thegeekstuff.com/wp-content/uploads/2008/07/2-begin-transfer-authorization.jpg"><img class="aligncenter size-full wp-image-95" title="Begin Transfer Authorization" src="http://www.thegeekstuff.com/wp-content/uploads/2008/07/2-begin-transfer-authorization.jpg" alt="Begin Transfer Authorization" width="388" height="71" /></a></p>
<p style="text-align: center;">Fig: Domain Status at new registrar before the transfer process</p>
<p>Enter the authorization code that was received from the current registrar and complete this process. After this step, the new registrar will display the Status as “Pending Current Registrar approval” and the Recommended Action as “Accept transfer at current registrar”</p>
<p style="text-align: center;"><a href="http://www.thegeekstuff.com/wp-content/uploads/2008/07/3-started-transfer-authorization.jpg"><img class="aligncenter size-full wp-image-96" title="Domain Transfer Started" src="http://www.thegeekstuff.com/wp-content/uploads/2008/07/3-started-transfer-authorization.jpg" alt="Domain Transfer Started" width="385" height="69" /></a></p>
<p style="text-align: center;">Fig: Domain status at new registrar after the transfer process is initiated</p>
<h3>5. Email Notification from current registrar.</h3>
<p>You will get an email from the current registrar confirming your transfer request. You don’t need to take any action if you want to accept the transfer. If you wish to cancel the transfer, follow the link from the email.</p>
<pre>We received notification on July 1, 2008 7:21:44 PM EDT that you have requested to transfer
to another domain name registrar. If you would like to proceed with this transfer you do
not need to respond to this message. If you wish to cancel the transfer please contact
us before July 5, 2008 7:21:44 PM EDT by visiting our secure website https://

If we do not hear from you by July 5, 2008 7:21:44 PM EDT, this transfer will proceed.
We are committed to providing you with the solutions, services, and support to help

you succeed online. We hope to continue serving you in the future.</pre>
<h3>6. Domain Transfer completed to new registrar</h3>
<p>A final confirmation email from new registrar was received approximately 4 days after initiating the transfer at the current registrar. Please note that the current registrar has up to 5 days to release the transfer of the domain</p>
<h3>References:</h3>
<p>ICANN - Internet Corporation for Assigned Names and Numbers, coordinates the domain name across the internet to make sure they are unique.  <a href="http://www.icann.org/transfers/dnholder-faq-03nov04.htm" target="_blank">FAQ for Domain-Name Holders</a> clarifies lot of questions about domain name transfer.</p>
<p>If you’ve transfered a domain name to a new registrar, please share your experience. If you are planning to transfer your domain name to a new registrar, what is your primary reason for transferring?</p>
<p>Source: http://www.thegeekstuff.com/2008/07/how-to-transfer-domain-name-to-new-registrar/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrefertili.net/en/2008/11/how-to-transfer-domain-name-to-new-registrar/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adding Google sitemap to blogger.com blog account</title>
		<link>http://www.terrefertili.net/en/2008/11/come-aggiungere-una-sitemap-da-un-sito-bloggercom/</link>
		<comments>http://www.terrefertili.net/en/2008/11/come-aggiungere-una-sitemap-da-un-sito-bloggercom/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 07:34:14 +0000</pubDate>
		<dc:creator>liotren</dc:creator>
		
		<category><![CDATA[guide]]></category>

		<guid isPermaLink="false">http://www.terrefertili.net/?p=401</guid>
		<description><![CDATA[You can now add Google sitemap to your blogger.com account and increase your chances of being indexed in Google search engine result. You can add a Sitemap to your account to give Google more information about the pages in your site to help Google crawl them more effectively.
Step # 1: Login to sitemap account
At the [...]]]></description>
			<content:encoded><![CDATA[<p>You can now add Google sitemap to your <a href="http://blogger.com/">blogger.com</a> account and increase your chances of being indexed in Google search engine result. You can add a Sitemap to your account to give Google more information about the pages in your site to help Google crawl them more effectively.</p>
<p><strong>Step # 1</strong>: Login to <a href="https://www.google.com/webmasters/sitemaps/login?hl=us&amp;utm_campaign=sitemaps-us-pbtls&amp;utm_source=EM">sitemap</a> account</p>
<p>At the top of screen you will see option to add site. Just paste URL of your blog (for example http://cyberciti.blogspot.com/)</p>
<p><a href="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step1o.png"><img src="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step1o.png" alt="sitemap" align="middle" /></a></p>
<p>(Click to enlarge image)</p>
<p>Click on Ok button. Next you will get confirmation message. Your site has been added to your account.</p>
<p><strong>Step # 2:</strong> Now you need to verify your ownership of blog to view detailed statistics. Click on verify link. Google offers two methods of verification. You can either upload an HTML file with a name we specify (which is not possible with Google Blogger account), or you can add a META tag to your site’s index file. Adding META tag via template code is possible so just select Add a META tag from drop down menu:</p>
<p><a href="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step2o.png"><img src="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step2o.png" alt="sitemap" align="middle" /></a></p>
<p>(Click to enlarge image)</p>
<p>It will generate code for you, copy the meta tag and paste it into your blogger.com template section).</p>
<p><strong>Step # 3:</strong> Go to your <a title="Open URL" href="http://blogger.com/" target="_blank">blogger.com</a> and login to your account. Goto your blog &gt; Click on Template</p>
<p>Paste the META tag code after   section:</p>
<p><a title="Click to enlarge" href="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step3.png"><img src="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step3.png" alt="sitemap" width="551" height="97" align="middle" /></a></p>
<p>(Click to enlarge image)</p>
<p>Click on Save Template changes button</p>
<p>Click on Republish Index only button &gt; Wait for few seconds so that your blog being published successfully.</p>
<p><strong>Step # 4: </strong>Now goto sitemap account and click the box that read as follows:</p>
<p>I’ve added the META tag in the home page of http://cyberciti.blogspot.com/. Click on Verify button.</p>
<p><a href="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step4.png"><img src="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step4.png" alt="sitemap" align="middle" /></a></p>
<p>(Click to enlarge image)</p>
<p><span style="font-weight: bold;">Step # 5:</span> Now your site is added to sitemap account and verification is done. Next you need to add actual sitemap url. Since blogger.com account donâ€™t allow you to create a text file or anything else you need to add your site feed (ATOM xml) file as a site map. Click on add a sitemap link:</p>
<p><a title="Click to enlarge" href="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step5.png"><img src="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step5.png" alt="sitemap" width="411" height="282" align="middle" /></a></p>
<p>(Click to enlarge image)</p>
<p><span style="font-weight: bold;">Step # 6</span>: You can add a Sitemap to your account to provide Google additional information about about your blog. Google will process your Sitemap and provide information on any errors in the Sitemaps tab as well your sitemap will be downloaded everyday to index your blog fast.</p>
<p>Select type as : Add General Web sitemap</p>
<p>Now you need to add Atom 0.3 feeds. Generally, you would use this format only if your site already has a syndication feed and this is the only way to add sitemap to your blogger.com account.</p>
<p>Paste url of your Atom feed: For example <strong>http://cyberciti.blogspot.com/atom.xml</strong> and click on Add Web sitemap:</p>
<p><strong>Update:</strong> If you are using a new blogger beta system, use <strong>http://yourblogname.blogspot.com/feeds/posts/full</strong> as a feed url.</p>
<p><a href="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step6.png"><img src="http://blogs.cyberciti.biz/hm/wp-content/uploads/2006/04/sitemap-step6.png" alt="sitemap" align="middle" /></a></p>
<p>You will get confirmation:</p>
<p><span style="font-style: italic;"> You have added a Sitemap to http://cyberciti.blogspot.com/. Reports may take several hours to update. Thank you for your patience!</span></p>
<p>And you are done and your blog will be now index very fast (depend upon your posting and content).</p>
<p>Source: <a href="http://theos.in/" target="_blank">http://theos.in/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrefertili.net/en/2008/11/come-aggiungere-una-sitemap-da-un-sito-bloggercom/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Apache mod_rewrite examples</title>
		<link>http://www.terrefertili.net/en/2008/11/apache-mod_rewrite-gli-esempi/</link>
		<comments>http://www.terrefertili.net/en/2008/11/apache-mod_rewrite-gli-esempi/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 06:55:11 +0000</pubDate>
		<dc:creator>liotren</dc:creator>
		
		<category><![CDATA[guide]]></category>

		<category><![CDATA[url rewrite]]></category>

		<guid isPermaLink="false">http://www.terrefertili.net/?p=233</guid>
		<description><![CDATA[One of the many sophisticated and powerful modules in Apache is mod_rewrite. It’s used for URL manipulation, also known as URL rewriting. It’s very powerful but very complicated in nature. Beginners may find it a little difficult to understand it the first time but people with knowledge of regular expressions will love its ease of [...]]]></description>
			<content:encoded><![CDATA[<p>One of the many sophisticated and powerful modules in <a id="KonaLink0" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://www.bloghash.com/2006/12/apache-mod_rewrite-examples/#" target="_top"><span style="font-weight: 400; font-size: 12px; position: static; color: #3b73b9;"><span class="kLink" style="font-weight: 400; font-size: 12px; position: static; font-family: Verdana,Arial,sans-serif; color: #3b73b9;">Apache</span></span></a> is mod_rewrite. It’s used for URL manipulation, also known as URL rewriting. It’s very powerful but very complicated in nature. Beginners may find it a little difficult to understand it the first time but people with knowledge of regular expressions will love its ease of use.<br />
For people who are interested in an in-depth learning, you will need some basic understanding of regular expressions to begin with. And for others who are here to fix the problem or implement mod_rewrite, let’s start.</p>
<p><strong>Does your web server support mod_rewrite?</strong><br />
Ensure that you are using Apache web <a id="KonaLink5" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://www.bloghash.com/2006/12/apache-mod_rewrite-examples/#" target="_top"><span style="font-weight: 400; font-size: 12px; position: static; color: #3b73b9;"><span class="kLink" style="font-weight: 400; font-size: 12px; position: static; font-family: Verdana,Arial,sans-serif; color: #3b73b9;">server</span></span></a> and mod_rewrite module is installed in your web server. To check this you can either contact your hosting service provider or check it yourself using these simple step.</p>
<p><strong>Step1</strong>. Create a blank <a id="KonaLink4" class="kLink" style="text-decoration: underline ! important; position: static;" href="http://www.bloghash.com/2006/12/apache-mod_rewrite-examples/#" target="_top"><span style="font-weight: 400; font-size: 12px; position: static; color: #3b73b9;"><span class="kLink" style="font-weight: 400; font-size: 12px; position: static; font-family: Verdana,Arial,sans-serif; color: #3b73b9;">text </span><span class="kLink" style="font-weight: 400; font-size: 12px; position: static; font-family: Verdana,Arial,sans-serif; color: #3b73b9;">file</span></span></a> using notepad or any other editor.<br />
<strong>Step2</strong>. Put  in the file.<br />
<strong>Step3</strong>. Save as ‘info.php’ [on windows Save as "info.php" (with double quotes)].<br />
<strong>Step4</strong>. Upload the file to your web server’s root or any other folder.<br />
<strong>Step5</strong>. Call the file in the url - http://your-domain.com/info.php and check if you see mod_rewrite in ‘Apache loaded modules’ section. If NOT, then please contact your hosting provider and request them to install/enable mod_rewrite.</p>
<p><strong>Note</strong>: If you have access to your httpd.conf file, you may check for mod_rewrite in that file as well. And also your httpd.conf must be configured to allow Fileinfo override. Contact your hosting provider for any server related issues.<br />
Next thing you would do is check your <a href="http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples/">.htaccess file</a>. Make a backup of your existing .htaccess file so that in case because of your changes if web server does not serve your site, you can always restore the backup copy.</p>
<p><strong>Examples of mod_rewrite</strong></p>
<p><strong>1. Description</strong> - Your current pages are called using index.php with parameter of url i.e<br />
<strong>http://www.example.com/index.php?url=category</strong><br />
and instead of this URL, you want a nice and easy to read URL like <strong>http://www.example.com/category</strong><br />
<strong>Solution</strong> - Put the following lines in your .htaccess file.<br />
<strong>RewriteEngine on<br />
RewriteRule ^([^/\.]+)/?$ /index.php?url=$1 [L]</strong><br />
<em>Note</em>: If your file already contains a line ‘RewriteEngine on’ then you don’t need to put it again unless it was set to off before you putting in your lines.</p>
<p><strong>2. Description</strong> - Your current URL is<br />
<strong>http://www.example.com/index.php?cat=category&amp;subcat=subcategory</strong><br />
which you would like to see as<br />
<strong>http://www.example.com/category/subcategory</strong><br />
<strong>Solution</strong> - Put the below lines in your .htaccess file<br />
<strong>RewriteEngine on<br />
RewriteRule  ^([^/\.]+)/([^/\.]+)/?$  /index.php?cat=$1&amp;subcat=$2 [L]</strong></p>
<p><strong>3. Description</strong> - You want to have many sub categories or categories like<br />
<strong>http://www.your-domain.com/category/subcat1/subcat2/subcat3/subcat4/subcat5/</strong><br />
which you would to rewrite to<br />
<strong>http://www.your-domain.com/index.php?cat=category&amp;subcat1=subcat1&amp;subcat2=subcat2</strong> and so on …<br />
<strong>Solution</strong> - See below lines..<br />
domain.com/category  –&gt; index.php?cat=category<br />
<strong>RewriteRule ^([^/\.]+)/?$ /index.php?cat=$1 [L]</strong><br />
domain.com/category/subcategory/  –&gt; index.php?cat=category&amp;subcat=subcategory<br />
<strong>RewriteRule  ^([^/\.]+)/([^/\.]+)/?$  /index.php?cat=$1&amp;subcat=$2 [L]</strong><br />
domain.com/p1/p2/p3/ –&gt; index.php?a=p1&amp;b=p2&amp;c=p3<br />
<strong>RewriteRule  ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$  /index.php?a=$1&amp;b=$2&amp;c=$3 [L]</strong><br />
domain.com/p1/p2/p3/p4 –&gt; index.php?a=p1&amp;b=p2&amp;c=p3&amp;d=p4<br />
<strong>RewriteRule  ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/?$  /index.php?a=$1&amp;b=$2&amp;c=$3&amp;d=$4 [L]</strong></p>
<p><strong>4. Description</strong> - Your URL has a folder and you would like rewriting for that folder. The URL looks like this <strong>http://domain.com/folder/index.php?url=name</strong> which you want to see as <strong>http://domain.com/folder/name/</strong><br />
<strong>Solution</strong> - Place the following lines in your .htaccess file<br />
<strong>RewriteEngine on<br />
RewriteRule ^folder/([^/\.]+)/?$ folder/index.php?url=$1 [L]</strong></p>
<p><strong>5. Description</strong> - Your actual URL is <strong>http://example.com/index.php?page=hello</strong> which you want to see as <strong>http://example.com/hello.htm</strong><br />
<strong>Solution</strong> - Place the following lines in your .htaccess file<br />
<strong>RewriteEngine on<br />
RewriteRule ^([^/\.]+).htm$ index.php?page=$1 [L]</strong></p>
<p><strong>6. Description</strong> - Your URL is <strong>http://example.com/folder/index.php?page=hello</strong> which you want to see as <strong>http://example.com/folder/hello.htm</strong><br />
<strong>Solution</strong> - Place the following lines in your <a href="http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples/">.htaccess file</a><br />
<strong>RewriteEngine on<br />
RewriteRule ^folder/([^/\.]+).htm$ folder/index.php?page=$1 [L]</strong><br />
There are many more things that you can do with mod_rewrite. As and when I discover more examples, I will keep updating this page. Please feel free to post your usage of mod_rewrite if already not covered here and I will add them to the above list of examples.</p>
<p><strong>Links for reference:</strong><br />
1. <a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html" target="_blank">Apache Documentation</a><br />
2. <a href="http://en.wikipedia.org/wiki/Regular_expression" target="_blank">Wikipedia page for regular expression</a></p>
<p>Original source:<br />
<a href="http://www.bloghash.com/2006/12/apache-mod_rewrite-examples/">http://www.bloghash.com/2006/12/apache-mod_rewrite-examples/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrefertili.net/en/2008/11/apache-mod_rewrite-gli-esempi/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How To Create Your Money-Making Custom Search Engine Powered By Google</title>
		<link>http://www.terrefertili.net/en/2008/11/come-guadagnare-con-il-motore-di-ricerca-personalizzato-di-google/</link>
		<comments>http://www.terrefertili.net/en/2008/11/come-guadagnare-con-il-motore-di-ricerca-personalizzato-di-google/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 09:17:31 +0000</pubDate>
		<dc:creator>liotren</dc:creator>
		
		<category><![CDATA[guide]]></category>

		<guid isPermaLink="false">http://www.terrefertili.net/?p=230</guid>
		<description><![CDATA[AdSense for Search is now powered by Google Custom Search. Yesterday, Google officially announced the availability of AdSense for Search for use in combination with the powerful Google Custom Search service, something not possible until now and potentially very welcome to both small and large professional web publishers looking for further ways to optimize their [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://www.google.com/adsense/static/en_US/WsOverview.html">AdSense for Search</a> is now powered by <a href="http://www.google.com/coop/cse/">Google Custom Search</a>. Yesterday, Google officially announced the availability of AdSense for Search for use in combination with the powerful Google Custom Search service, something not possible until now and potentially very welcome to both small and large professional web publishers looking for further ways to optimize their <a href="http://www.masternewmedia.org/content-monetization/how-to-make-money-with-blog/content-monetization-tools-services-mini-guide-20070211.htm">content monetization opportunities</a> while helping their readers find more easily the information they are looking for.</p>
<p><strong>With</strong> <a href="https://www.google.com/adsense/static/en_US/WsOverview.html">AdSense for Search</a> now powered by Google Custom Search, professional web publishers have some truly advanced and very cool customization options to best monetize their search results pages through AdSense contextual ads.</p>
<p>Among some of the most powerful new customization options are a) keyword tuning, b) creating vertical search solutions, and c) customizing fully the placement of ads on your site Google search results pages.</p>
<p><strong>The new Custom Search platform has significantly improved</strong> its indexing capabilities while fully integrating the power of AdSense for Search. AdSense web publishers like you can now create unlimited Custom Search Engines (CSEs) and take advantage of the most popular customization features already available within their AdSense accounts.</p>
<p><strong>If you are not yet familiar with it</strong>, you should know that Google Custom Search is built on top of the very main Google index, though now it maintains its own index for enhanced coverage of sites included in CSEs. This improved indexing approach only affects search results within your custom-created search engine, not your own site rank and indexing level on Google.com.</p>
<h2>Overview - AdSense for Search Integration With Custom Search</h2>
<ul>
<li><strong>Create</strong> a custom, personalized search engine in no time at all</li>
<li><strong>Customize</strong> the appearance of search results and ads</li>
<li><strong>Tune</strong> results and ads to your site&#8217;s content and audience</li>
<li><strong>Get</strong> more comprehensive site search results with improved indexing</li>
<li><strong>Earn</strong> revenue while helping your users find what they’re looking for</li>
</ul>
<h2>Key Features</h2>
<ul>
<li>
<h2>Site Search</h2>
<p><strong>If you&#8217;ve worked hard to attract users to your site</strong>, so it&#8217;s understandable that you&#8217;d be concerned about those users leaving through web search. Now you can choose to provide just site search so users can find all the information they&#8217;re looking for on your site, and you can host the search results <a href="https://www.google.com/adsense/support/bin/answer.py?answer=43862&amp;sourceid=aso&amp;subid=ww-en-et-asblog_2008-05-05&amp;medium=link">on your own pages</a> so that they can find that information without leaving your site.</li>
<li>
<h2>Improved Indexing of your Pages</h2>
<p><strong>Google has recently improved its indexing technology</strong> so that you can provide a more enhanced Site Search experience to your users. AdSense for search will now index even more pages of your site so that your users will see <a href="http://www.google.com/support/customsearch/bin/answer.py?answer=94097&amp;sourceid=aso&amp;subid=ww-en-et-asblog_2008-05-05&amp;medium=link">more results from your site</a> in your AdSense for search results.</li>
<li>
<h2>Vertical Search</h2>
<p><strong>You can also allow your users to search across multiple sites</strong> - this could be a network of sites that you own or other related sites that you think your users might find useful. If you write book reviews on your blog, for example, you can use vertical search to specify a list of online bookstores for users to search through. Other examples of vertical searches include computer forums, travel blogs, political sites you endorse, etc.</li>
<li>
<h2>Tuning Search Results and Ads with Keywords</h2>
<p><strong>Search terms can have different meanings</strong> in different contexts, so you can now configure your search engine with relevant keywords. Let&#8217;s say you manage a site about yoga - you can enter keywords such as &#8216;yoga,&#8217; &#8216;exercise,&#8217; and &#8216;meditation&#8217; so that when a user searches for &#8216;mat,&#8217; the search results and ads will be more related to yoga mats and less to commercial floor mats. (You can see an example of this in the video below). In research experiments run so far it has been found that this tuning has led to an increase in earnings for web publishers.</li>
<li>
<h2>Choosing Ad Position</h2>
<p><strong>Do you want your AdSense ads to appear at the top</strong> and bottom of your search results? Or along the right sidebar as well, just like on Google.com? Now you can make the call on where ads are placed. (Placing ads at the top and right monetizes the best for publishers.)</li>
<li>
<h2>Quick and Easy Changes and Modifications To Your Setup</h2>
<p><strong>Just as you use Google</strong> <a href="https://www.google.com/adsense/support/bin/topic.py?topic=12203&amp;sourceid=aso&amp;subid=ww-en-et-asblog_2008-05-05&amp;medium=link">ad management feature</a> to quickly change the settings for your ad and referral units, you&#8217;ll be able to do the same for your search engine within your AdSense account. Your settings will be saved in your account, so you won&#8217;t need to generate new search code for each change.</li>
</ul>
<p>Original posted by <span class="date"><span class="a"><strong>Robin Good</strong></span> on <strong>Wednesday, May 7</strong> 2008, updated on <strong>Wednesday, May 7</strong> 2008 under Creative Commons License</span></p>
<div class="full_width_posted_by">Original link: <a href="http://www.masternewmedia.org/news/2008/05/07/how_to_create_your_moneymaking.htm">http://www.masternewmedia.org/news/2008/05/07/how_to_create_your_moneymaking.htm</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.terrefertili.net/en/2008/11/come-guadagnare-con-il-motore-di-ricerca-personalizzato-di-google/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to convert any webpage into RSS</title>
		<link>http://www.terrefertili.net/en/2008/11/come-convertire-qualunque-pagina-web-in-rss/</link>
		<comments>http://www.terrefertili.net/en/2008/11/come-convertire-qualunque-pagina-web-in-rss/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 09:15:15 +0000</pubDate>
		<dc:creator>liotren</dc:creator>
		
		<category><![CDATA[guide]]></category>

		<category><![CDATA[italiano]]></category>

		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://howto.terrefertili.net/?p=208</guid>
		<description><![CDATA[How can you convert the contents of a web page into  RSS? How do you generate a RSS feed for a website, search result page or news source that doesn&#8217;t have one? Can you do this without spending any money and without having any technical HTML skill?
In this new Sharewood Guide I have collected [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How can you</strong> convert the contents of a web page into <span id="apture_prvw1" class="aptureLink"><span class="aptureLinkIcon" style="background-position: right -1048px;"> </span><a class="aptureLink snap_noshots" href="http://en.wikipedia.org/wiki/RSS%20%28file%20format%29">RSS</a></span>? How do you generate <a href="http://www.masternewmedia.org/content_delivery_and_distribution/rss-really-simple-syndication/RSS-what-it-is-best-uses-applications-guide-20071120.htm">a RSS feed</a> for a website, search result page or news source that doesn&#8217;t have one? Can you do this without spending any money and without having any technical HTML skill?</p>
<p><strong>In this new Sharewood Guide</strong> I have collected the best free tools to convert any web page to RSS.</p>
<p><a href="http://www.masternewmedia.org/news/2006/03/09/how_to_create_a_rss.htm">Web page to RSS converters</a> are free tools, usually web-based, that anyone can use to keep changes of any site which doesn&#8217;t offer a RSS feed for its readers.</p>
<p><a href="http://www.masternewmedia.org/content_delivery_and_distribution/rss-really-simple-syndication/RSS-what-it-is-best-uses-applications-guide-20071120.htm">RSS feeds</a> are very intuitive and easy-to-use: to create a feed just grab the desired page&#8217;s URL, paste it into the box, and click generate. Some of these tools, will also offer advanced options to let you refine which of the items present on a specific web page need to be included in your newly generated RSS feed.</p>
<p>Here the best web page to RSS converters I have found out there (if you know of other ones, please help me out by adding them in the comment area at the end):</p>
<h2>Convert Web Pages Contents Into RSS Tool List</h2>
<ol>
<li><strong>Dapper</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_dapper.gif" alt="" /><br />
Dapper is a free service that lets you convert any web page content (from YouTube search results to blog posts) into a RSS feed in seconds. Just provide a URL (ore more), select and divide in multiple fields the content that you want to be included in your feed (e.g. titles, descriptions, images&#8230;), decide the output format and save your feed. You will need to be registered to create as many feeds as you want. Free.<br />
<a href="http://www.dapper.net/">http://www.dapper.net/</a></li>
<li><strong>Yahoo! Pipes</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_pipes.gif" alt="" /><br />
Yahoo! Pipes is a RSS feed mixer that mashes content from the web together into new interactive creations. It lets you drag and drop different information feeds, such as the latest news items from your favorite news sources, or search queries, or anything else you want, and combine them through a series of filters into &#8220;<em>pipes</em>&#8220;.The service is completely free to use; a Yahoo! account is required.<br />
<a href="http://pipes.yahoo.com/">http://pipes.yahoo.com/</a></li>
<li><strong>Feed43</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_feed43.gif" alt="" /><br />
Feed43 is an online service that converts standard web pages or XML documents to RSS feeds. In order to create a new feed, simply identify the web page from which to generate a RSS feed, define the search patterns to help the system locate the news source, and generate the feed. The service is free to use, no registration is needed.<br />
<a href="http://www.feed43.com/">http://www.feed43.com/</a></li>
<li><strong>RSSxl</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_rssxl1.gif" alt="" /><br />
RSSxl is an easy-to-use web page to RSS converter, that allows you to convert any page to a normal RSS feed. After you provide the URL of the site, you just have to identify the news items&#8217; start and end points by pointing to them with some HTML or string keywords. Then you can click generate, and get your new RSS news feed to keep updated with that page&#8217;s changes. Free.<br />
<a href="http://www.wotzwot.com/rssxl.php">http://www.wotzwot.com/rssxl.php</a></li>
<li><strong>Web2RSS</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_web2rss.gif" alt="" /><br />
Web2RSS is a web-based app that automatically turns any website into a RSS news feed. Pasting the site&#8217;s URL is enough to let Web2RSS convert the content and export it in RSS format, without doing anything. If you want to make it even more precise, you can either match or exclude parts of the page using HTML or string expressions present on the page. Free to use, no registration is needed.<br />
<a href="http://www.baekdal.com/web2rss/">http://www.baekdal.com/web2rss/</a></li>
<li><strong>RSS Wizard</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_rsswizard1.gif" alt="" /><br />
RSS Wizard is a software for Windows machines than can generate the RSS feed out of any web page without having to edit it first. To create a feed, you have to start the program, paste a URL, provide a start and end string to make the software recognize where the news begin and end, and click OK to create the feed. Free to try, $29.05 to buy.<br />
<a href="http://www.extralabs.net/rss-wizard.htm">http://www.extralabs.net/rss-wizard.htm</a></li>
<li><strong>Feedity</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_feedity1.gif" alt="" /><br />
Feedity is an only feed builder that creates a RSS feed out of any website. Feedity is very easy-to-use and lets you get your feed in two steps: enter the URL of the desired website, help the service identify the news source on the page by pointing to some reference points (in simple or advanced mode), and click generate to retrieve your feed. Free to use, doesn&#8217;t require any registration.<br />
<a href="http://feedity.com/">http://feedity.com/</a></li>
<li><strong>Feedmarklet</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_feedmarklet1.gif" alt="" /><br />
Feedmarklet gives you the ability to create your own RSS feed instantly through a browser bookmarklet, with no sign up required. After you insert a name for your feed, you can start adding content to it easily: find a link you want to keep an eye on and click on the bookmarklet button in your browser to immediately add the page you are on to your feed. By doing this, you can mix multiple sources into a single feed with one click. Free.<br />
<a href="http://www.feedmarklet.com/">http://www.feedmarklet.com/</a></li>
<li><strong>FeedFire</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_feedfire1.gif" alt="" /><br />
FeedFire is an HTML-to-RSS service allowing anyone to automatically create a RSS news feed for any website that does not have one. You simply register at FeedFire, input the URL of the page and it&#8217;ll do the rest for you in a matter of seconds. The service offers both free and paid feeds, which you can discover by signing up to the service.<br />
<a href="http://www.feedfire.com/">http://www.feedfire.com/</a></li>
<li><strong>FeedYes</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_feedyes1.gif" alt="" /><br />
FeedYes is a completely automatic tool for creating RSS feeds out of HTML web pages. Three steps are involved in the process: provide the URL of the page out of which you want to create a feed; indicate among the dynamic links found by FeedYes, which one is the first that refers to the news section; select the last item that closes the news section. Then, after a preview is shown, you can proceed and save your feed, or further refine it. Free.<br />
<a href="http://www.feedyes.com/">http://www.feedyes.com/</a></li>
<li><strong>PonyFish</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_ponyfish.gif" alt="" /><br />
Ponyfish is a web-based tool that allows you to create your own RSS feeds from almost any web page. All you have to do is point Ponyfish to the web page you want to create a feed from, then select at least two links that you will want to see in your feed (this indicates to the system which links are news sources) and finally copy your new RSS feed URL. Free to use, no registration needed.<br />
<a href="http://www.ponyfish.com/">http://www.ponyfish.com/</a></li>
<li><strong>Page2RSS</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_page2rss1.gif" alt="" /><br />
Page2RSS is a completely web-based and automatic service which converts web pages to RSS feeds. You can just paste a page URL, and Page2RSS will instantly give you back a preview of the new RSS feed you just created, with the possibility of subscribing to it with the major RSS readers available. You can also use a toolbar button to create feeds for all the pages that you are currently viewing. Free to use, doesn&#8217;t require any registration.<br />
<a href="http://page2rss.com/">http://page2rss.com/</a></li>
<li><strong>RSSpect</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_rsspect1.gif" alt="" /><br />
RSSpect is a service that lets you add RSS feeds to any web page. RSSpect offers three kinds of feeds, so you can add a RSS feed to literally anything you find online: “<em>AnySite feeds</em>” allows you to create update feeds from any website or any document online, even those that you don&#8217;t control; “<em>MySite feeds</em>” allows you to generate advanced RSS feeds from your own website content, automatically. “<em>Podcast feeds</em>” are specially-designed RSS feeds to be used with iTunes. Free to use.<br />
<a href="http://www.rsspect.com/">http://www.rsspect.com/</a></li>
<li><strong>CaRP</strong><br />
<img src="http://www.masternewmedia.org/images/tools_page-to-rss_CaRP.jpg" alt="" /><br />
CaRP is a PHP script that lets you generate RSS feeds for your web page. CaRP comes in two different versions: LE (basic) and Evolution (enhanced). The LE version allows no control on the appearance of your feeds, while the Evolution version comes with sixteen free bonus plugins to let you customize your RSS-generating experience: auto-update feeds, add images, embed videos, select which part of the text you want to show, sort your feeds, and much more. CaRP LE is free and CaRP Evolution is priced at $47. Registration required for both.<br />
<a href="http://www.geckotribe.com/rss/carp/">http://www.geckotribe.com/rss/carp/</a></li>
</ol>
<p><span class="photocredit">Originally written by Nico Canali De Rossi for <a href="http://www.masternewmedia.org/">MasterNewMedia</a> and first published on October 13th 2008 as &#8220;<a href="http://www.masternewmedia.org/convert_web_pages_content_into_rss_feeds/">Convert Web Pages Content Into RSS Feeds: Web Page To RSS Converters - Sharewood Guide</a>&#8220;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrefertili.net/en/2008/11/come-convertire-qualunque-pagina-web-in-rss/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Url Rewrite - A beginners Guide</title>
		<link>http://www.terrefertili.net/en/2008/11/url-rewrite/</link>
		<comments>http://www.terrefertili.net/en/2008/11/url-rewrite/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 09:09:20 +0000</pubDate>
		<dc:creator>liotren</dc:creator>
		
		<category><![CDATA[guide]]></category>

		<category><![CDATA[english]]></category>

		<category><![CDATA[url rewrite]]></category>

		<guid isPermaLink="false">http://howto.terrefertili.net/?p=206</guid>
		<description><![CDATA[Try this on line tool to generate automatically your .htaccess file:
http://www.webconfs.com/url-rewriting-tool.php

And now, an excellent beginner’s guide (with examples):
Until recently, I only had the vaguest of ideas of what mod_rewrite was, and I certainly had no clue about how to use it. So, when I started designing this site, I decided to delve into the wonders [...]]]></description>
			<content:encoded><![CDATA[<p>Try this on line tool to generate automatically your .htaccess file:</p>
<blockquote><p><a href="http://www.webconfs.com/url-rewriting-tool.php" target="_blank">http://www.webconfs.com/url-rewriting-tool.php</a></p>
</blockquote>
<p>And now, an excellent <a href="http://www.workingwith.me.uk/articles/scripting/mod_rewrite">beginner’s guide (with examples):</a></p>
<p>Until recently, I only had the vaguest of ideas of what mod_rewrite was, and I certainly had no clue about how to use it. So, when I started designing this site, I decided to delve into the wonders that are the mod_rewrite Apache module.</p>
<h3>So, what is mod_rewrite for?</h3>
<p>Simply, mod_rewrite is used for rewriting a URL at the server level, giving the user output for that final page. So, for example, a user may ask for <code>http://www.somesite.com/widgets/blue/</code>, but will really be given     <code>http://www.somesite.com/widgets.php?colour=blue</code> by the server.  Of course, the    user will be none the wiser to this little bit of chicanery.</p>
<p>On <a href="http://www.workingwith.me.uk/">workingwith.me.uk</a>,     <a href="http://www.workingwith.me.uk/blog/31743/">I use mod_rewrite to     redirect all pages to one central PHP page</a>, which then loads the data that the user wanted from an external data file. Lots of people use mod_rewrite to show an “alternative” image when people are hotlinking directly to their images.</p>
<h3>What do I need to get mod_rewrite working?</h3>
<p>There’s pretty much only one thing you’ll need to get mod_rewrite working for you, and that’s to have the mod_rewrite module installed on your Apache server!</p>
<p>For the purpose of this article, I’m going to assume that you don’t have access to view or edit the Apache server httpd.conf file, so the easiest way to check whether the mod_rewrite module is installed will be to look on your phpinfo page. If you’ve not already created one of these for yourself, just copy and paste the following code into an new text file using your favourite text editor, save it as <code>phpinfo.php</code>, and upload it to     your server:</p>
<pre>&lt;?php phpinfo(); ?&gt;</pre>
<p>Load that page up in your web browser, and perform a search for “mod_rewrite”. All being well, you’ll find it in the “Apache loaded modules” section of the page. If it isn’t there, you’ll have to contact your hosting company and politely ask them to add it to the Apache configuration.</p>
<p>Assuming the mod_rewrite module is loaded, then you’re good to go!</p>
<h3>A simple mod_rewrite example</h3>
<p>So, let’s write a simple mod_rewrite example. This isn’t going to be anything fancy; we’re just going to redirect people who ask for <code>alice.html</code> to the page     <code>bob.html</code> instead.  First, let’s create the Alice and Bob pages.  Below is    Alice’s webpage - create a similar one for Bob.</p>
<pre>&lt;html&gt;
   &lt;head&gt;
      &lt;title&gt;Alice's webpage&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
      &lt;p&gt;
         This is Alice's webpage
      &lt;/p&gt;
   &lt;/body&gt;
&lt;/html&gt;</pre>
<p>Upload both of these to your web server, and check that you can view both of them. Now comes the fun - we’re going to add a couple of lines to your .htaccess file. The .htaccess file is a text file which contains Apache directives. Any directives which you place in it will apply to the directory which the .htaccess file sits in, and any below it. To ours, we’re going to add the following:</p>
<pre>RewriteEngine on
RewriteRule ^alice.html$ bob.html</pre>
<p>Upload this .htaccess file to the same directory as alice.html and bob.html, and reload Alice’s page. You should see Bob’s page being displayed, but Alice’s URL. If you still see Alice’s page being displayed, then check you’ve followed the instructions correctly (you may have to clear your cache). If things still aren’t working for you, then contact your technical support people and ask them to enable mod_rewrite and the FileInfo override in their httpd.conf file for you</p>
<h3>The structure of a RewriteRule</h3>
<pre>RewriteRule <em>Pattern Substitution [OptionalFlags]</em></pre>
<p>The general structure of a RewriteRule is fairly simple if you already understand regular expressions. This article isn’t intended to be a tutorial about regular expressions though - there are already plenty of those available. RewriteRules are broken up as follows:</p>
<dl>
<dt>RewriteRule</dt>
<dd>This is just the name of the command. </dd>
<dt>Pattern</dt>
<dd>A regular expression which will be applied to the “current” URL. If any RewriteRules have already been performed on the requested URL, then that changed URL will be the current URL. </dd>
<dt>Substitution</dt>
<dd>Substitution occurs in the same way as it does in Perl, PHP, etc.You can include backreferences and server variable names (<code>%{VARNAME}</code>)  	      in the substitution.  Backreferences to this RewriteRule should be written as 	      <code>$N</code>, whereas backreferences to the previous RewriteCond should be written 	      as <code>%N</code>.</p>
<p>A special substitution is <code>-</code>. This substitution tells Apache to not perform any substitution. I personally find that this is useful when using the <code>F</code> or <code>G</code> flags (see below), but there are other uses as well.</p>
</dd>
<dt>OptionalFlags</dt>
<dd>This is the only part of the RewriteRule which isn’t mandatory. Any flags which you use should be surrounded in square brackets, and comma separated. The flags which I find to be most useful are:</p>
<ul>
<li><code>F</code> -  	            Forbidden.  The user will receive a 403 error.</li>
<li><code>L</code> -  	            Last Rule.  No more rules will be proccessed if this one was successful.</li>
<li><code>R[=code]</code> - Redirect. The user’s web browser will be visibly redirected to the substituted URL. If you use this flag, you <em>must</em> prefix the substitution with 	            <code>http://www.somesite.com/</code>, thus making it into a true URL.  If no 	            code is given, then a HTTP reponse of 302 (temporarily moved) is sent.</li>
</ul>
<p>A full list of flags is given in the Apache mod_rewrite manual.</p>
</dd>
</dl>
<h3>A slightly more complicated mod_rewrite example</h3>
<p>Let’s try a slightly more meaty example now. Suppose you have a web page which takes a parameter. This parameter tells the page how to be displayed, and what content to pull into it. Humans don’t tend to like remembering the additional syntax of query strings for URLs, and neither do search engines. Both sets of people seem to much prefer a straight URL, with no extra bits tacked onto the end.</p>
<p>In our example, you’ve created a main index page with takes a <code>page</code> parameter.    So, a link like <code>index.php?page=software</code> would take you to a software page,    while a link to <code>index.php?page=interests</code> would take you to an interests page.    What we’ll do with mod_rewrite is to silently redirect users from     <code>page/software/</code> to <code>index.php?page=software</code> etc.</p>
<p>The following is what needs to go into your .htaccess file to accomplish that:</p>
<pre>RewriteEngine on
RewriteRule ^page/([^/\.]+)/?$ index.php?page=$1 [L]</pre>
<p>Let’s walk through that RewriteRule, and work out exactly what’s going on:</p>
<dl>
<dt>^page/</dt>
<dd>Sees whether the requested page starts with <code>page/</code>.  If it doesn’t, 	      this rule will be ignored. </dd>
<dt>([^/.]+)</dt>
<dd>Here, the enclosing brackets signify that anything that is matched will be remembered by the RewriteRule. Inside the brackets, it says “I’d like one or more characters that aren’t a forward slash or a period, please”. Whatever is found here will be captured and remembered. </dd>
<dt>/?$</dt>
<dd>Makes sure that the only thing that is found after what was just matched is a possible forward slash, and nothing else. If anything else is found, then this RewriteRule will be ignored. </dd>
<dt>index.php?page=$1</dt>
<dd>The actual page which will be loaded by Apache.  <code>$1</code> is magically 	      replaced with the text which was captured previously. </dd>
<dt>[L]</dt>
<dd>Tells Apache to not process any more RewriteRules if this one was successful. </dd>
</dl>
<p>Let’s write a quick page to test that this is working. The following test script will simply echo the name of the page you asked for to the screen, so that you can check that the RewriteRule is working.</p>
<pre>&lt;html&gt;
   &lt;head&gt;
      &lt;title&gt;Second mod_rewrite example&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
      &lt;p&gt;
         The requested page was:
         &lt;?php echo $_GET['page']; ?&gt;
      &lt;/p&gt;
   &lt;/body&gt;
&lt;/html&gt;</pre>
<p>Again, upload both the index.php page, and the .htaccess file to the same directory.     Then, test it!  If you put the page in <code>http://www.somesite.com/mime_test/</code>,    then try requesting <code>http://www.somesite.com/mime_test/page/software</code>. The URL in your browser window will show the name of the page which you requested, but the content of the page will be created by the <code>index.php</code> script! This technique can obviously be extended to pass multiple query strings to a page - all you’re limited by is your imagination.</p>
<h3>Conditional Statements and mod_rewrite</h3>
<p>But what happens when you start getting people hotlinking to your images (or other files)? Hot linking is the act of including an image, media file, etc from someone else’s server in one of your own pages as if it were your own. Obviously, as a webmaster, there are plenty of times when you don’t want people doing that. You’ll almost certainly have seen examples where someone has linked to one image on a website, only for a completely different, “nasty” one to be shown instead. So, how is this done?</p>
<p>It’s pretty simple really.  All it takes are a couple of RewriteCond statements in your    .htaccess file.</p>
<p>RewriteCond statements are as they sound - conditional statements for RewriteRules.    The basic format for a RewriteCond is <code>RewriteCond test_string cond_pattern</code>. For our purpose, we will set the test_string to be the HTTP_REFERER. If the test string is neither empty nor our own server, then we will serve an alternative (low bandwidth) image, which tells the person who is hotlinking off for stealing our bandwidth.</p>
<p>Here’s how we do that:</p>
<pre>RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?somesite.com/.*$ [NC]
RewriteRule \.(gif|jpg|png)$ http://www.somesite.com/nasty.gif [R,L]</pre>
<p>Here, the RewriteRule will only be performed if all the preceeding RewriteConds are    fulfilled.  In the second RewriteCond, <code>[NC]</code> simply means “No Case”, so it doesn’t matter whether the domain name was written in upper case, lower case or a mixture of the two. So, any requests for gif, jpg or png files from referers other than somesite.com will result in your “nasty” image being shown instead.</p>
<p>The <code>[R,L]</code> in the RewriteRule simply means “Redirect, Last”. So, the RewriteRule will visibly redirect output to “nasty.gif” and no more RewriteRules will be performed on this URL.</p>
<p>If you simply don’t want the hot linkers to see any image at all when they hot link to your images, then simply change the final line to <code>RewriteRule \.(gif|jpg|png)$ - [F]</code>.  The <code>-</code> means “don’t rewrite     the requested URL”, and the <code>[F]</code> means “Forbidden”.  So, the hot linker will     get a “403 Forbidden message”, and you don’t end up wasting your bandwidth.</p>
<h3>Conclusion</h3>
<p>mod_rewrite is an incredibly handy tool to have in your arsenal. This article only scratched the surface of what is possible with mod_rewrite, but should have given you enough information to go out and start mod_rewriting history yourself!</p>
<h3>References</h3>
<p><a class="external" href="http://httpd.apache.org/docs/mod/mod_rewrite.html">Apache module    mod_rewrite</a> - Apache’s big long document about the mod_rewrite module.</p>
<p><a href="http://www.amazon.co.uk/exec/obidos/redirect?link_code=as2&amp;path=ASIN/1590595610&amp;tag=workingwmeuk-21&amp;camp=1634&amp;creative=6738">The Definitive Guide to Apache mod_rewrite</a> - If you’re serious about learning how to use mod_rewrite and need more detail than you got in this article, then I can sincerely recommend buying <a href="http://www.workingwith.me.uk/blog/review/the_definitive_guide_to_apache_mod_rewrite">The Definitive Guide to Apache mod_rewrite</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.terrefertili.net/en/2008/11/url-rewrite/feed/</wfw:commentRss>
		</item>
		<item>
		<title>La nuova piattaforma è in linea</title>
		<link>http://www.terrefertili.net/en/2008/11/la-nuova-piattaforma-e-in-linea/</link>
		<comments>http://www.terrefertili.net/en/2008/11/la-nuova-piattaforma-e-in-linea/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 08:43:50 +0000</pubDate>
		<dc:creator>liotren</dc:creator>
		
		<category><![CDATA[il campus]]></category>

		<guid isPermaLink="false">http://howto.terrefertili.net/?p=203</guid>
		<description><![CDATA[
Da oggi tutti gli iscritti al campus possono entrare direttamente nella nuova piattaforma


più facile da navigare
fruizione dei corsi più intuitiva
nuove funzionalità

Buon lavoro a tutti/e
]]></description>
			<content:encoded><![CDATA[<div id="photoImgDiv2930200844" class="photoImgDiv" style="width: 502px;"><img class="reflect" src="http://farm4.static.flickr.com/3006/2930200844_6bb948ccaf.jpg?v=0" alt="Morning sky :: HDR da raul_pc." width="297" height="220" /></div>
<div class="photoImgDiv" style="width: 502px;">Da oggi tutti gli iscritti al campus possono entrare direttamente nella nuova piattaforma</div>
<div class="photoImgDiv" style="width: 502px;">
<ul>
<li>più facile da navigare</li>
<li>fruizione dei corsi più intuitiva</li>
<li>nuove funzionalità</li>
</ul>
<p>Buon lavoro a tutti/e</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.terrefertili.net/en/2008/11/la-nuova-piattaforma-e-in-linea/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
