<?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>Student la CS &#187; php</title>
	<atom:link href="http://alex.eftimie.ro/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://alex.eftimie.ro</link>
	<description>upb, cs, ubuntu, rosedu, L10n</description>
	<lastBuildDate>Sun, 22 Jan 2012 12:54:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Cum activezi mod_rewrite in apache2 pe Ubuntu 7.04</title>
		<link>http://alex.eftimie.ro/2007/06/13/cum-activezi-mod_rewrite-in-apache2-pe-ubuntu-704-feisty-fawn/</link>
		<comments>http://alex.eftimie.ro/2007/06/13/cum-activezi-mod_rewrite-in-apache2-pe-ubuntu-704-feisty-fawn/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 10:31:00 +0000</pubDate>
		<dc:creator>Alex Eftimie</dc:creator>
				<category><![CDATA[softwareliber]]></category>
		<category><![CDATA[tutoriale]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Modulul mod_rewrite al serverului Apache este responsabil de url-urile frumoase. Astfel, in loc de: http://www.siteulmeu.ro/index.php?q=pages&#38;page=Contact utilizatorul poate &#8220;vedea&#8221; in browser: http://www.siteulmeu.ro/pages/Contact Pe scurt, m-am lovit de problema activarii acestui modul, si, desi solutia este simpla, am avut un pic de sapat dupa ea. Solutia se aplica la serverul apache2 pe distributia Ubuntu. Deci, ce trebuie [...]]]></description>
			<content:encoded><![CDATA[<p>Modulul mod_rewrite al serverului Apache este responsabil de url-urile frumoase. Astfel, in loc de:</p>
<pre class="geshifilter">http://www.siteulmeu.ro/index.php?q=pages&amp;page=Contact</pre>
<p>utilizatorul poate &#8220;vedea&#8221; in browser:</p>
<pre class="geshifilter">http://www.siteulmeu.ro/pages/Contact</pre>
<p>Pe scurt, m-am lovit de problema activarii acestui modul, si, desi solutia este simpla, am avut un pic de sapat dupa ea. Solutia se aplica la serverul apache2 pe distributia Ubuntu.</p>
<p>Deci, ce trebuie facut:</p>
<pre class="geshifilter">$ sudo a2enmod rewrite</pre>
<p>apoi:</p>
<pre class="geshifilter">$ <span style="color: #000066;">cd</span> /etc/apache2/sites-available/$ sudo gedit default</pre>
<p>se face modificarea liniei <span style="font-style: italic;">AllowOverride</span> din <span style="font-style: italic;">None </span>in<span style="font-style: italic;"> all</span>:</p>
<pre class="geshifilter">&lt;directory&gt;
Options IndexesFollowSymLinks
MultiViewsAllowOverride<span style="font-weight: bold;"> all
</span>Order allow, deny
allow from all
&lt;/directory&gt;</pre>
<p>( /var/www putea fi alt folder, folderul root pentru apache, de exemplu la mine este<span style="font-style: italic;"> /home/alex/htdocs</span> )<br />
si in final:</p>
<pre class="geshifilter">$ sudo /etc/init.d/apache2 restart</pre>
<p>Asta e tot, mai departe tot ceea ce trebuie facut este sa completezi folderele care te intereseaza cu fisiere <span style="font-style: italic;">.htaccess</span> corespunzatoare (de exemplu <span style="font-style: italic;">/var/www/.htaccess</span>).  Un exemplu de continut foarte simplu al fisierului <span style="font-style: italic;">.htaccess</span> este:</p>
<pre class="geshifilter">RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z\/0-9\ ]*)$  index.php?url=$1</pre>
<p>Legaturi: <a href="http://www.gtrev.it/ubuntu-edgy-modrewrite-e-drupal">http://www.gtrev.it/ubuntu-edgy-modrewrite-e-drupal</a><a href="http://www.gtrev.it/ubuntu-edgy-modrewrite-e-drupal"></a><br />
<a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html">http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alex.eftimie.ro/2007/06/13/cum-activezi-mod_rewrite-in-apache2-pe-ubuntu-704-feisty-fawn/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

