<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Rewrite della home]]></title><description><![CDATA[<p dir="auto">Buongiorno a tutti,<br />
ho un problema di rewrite.<br />
ho un sito fatto con un cms (modx) che funziona egregiamente e che  ha il rewrite abilitato per redirigere tutte le pagine al relativo alias.<br />
Tutto funziona egregiamente, l'unico problema ce l'ho con la home page che vorrei che sia del tipo NOMEDOMINIO/ e per le relative lingue NOMEDOMINIO/EN, NOMEDOMINIO/ES, ...<br />
Invece attualmente è così:<br />
NOMEDOMINIO/ALIAS, NOMEDOMINIO/EN/ALIAS, ...</p>
<p dir="auto">Purtroppo non posso specificare un alias nullo, per cui devo usare l'htaccess per reindirizzare NOMEDOMINIO/ALIAS a NOMEDOMINIO/<br />
ma se provo mi dice che la pagina non reindirizza in modo corretto...</p>
<p dir="auto">Ecco il mio htaccess:</p>
<h1>Friendly URLs</h1>
<p dir="auto">RewriteEngine On<br />
RewriteBase /</p>
<h1>Fix Apache internal dummy connections from breaking [(site_url)] cache</h1>
<p dir="auto">RewriteCond %{HTTP_USER_AGENT} ^.<em>internal\ dummy\ connection.</em>$ [NC]<br />
RewriteRule .* - [F,L]</p>
<h1>Redirect from <a href="http://mydomain.com/rootname" rel="nofollow ugc">mydomain.com/rootname</a> to <a href="http://mydomain.com/rootname/" rel="nofollow ugc">mydomain.com/rootname/</a></h1>
<p dir="auto">RewriteRule ^en$ en/ [R=301,L]<br />
RewriteRule ^fr$ fr/ [R=301,L]<br />
RewriteRule ^es$ es/ [R=301,L]</p>
<h1>The Friendly URLs part</h1>
<p dir="auto">RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^es/(.<em>)$ index.php?q=$1 [L,QSA]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^en/(.</em>)$ index.php?q=$1 [L,QSA]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^fr/(.<em>)$ index.php?q=$1 [L,QSA]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^(.</em>)$ index.php?q=$1 [L,QSA]</p>
<p dir="auto">Grazie a tutti</p>
]]></description><link>https://dev.connect.gt/topic/138941/rewrite-della-home</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 16:06:54 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/138941.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Nov 2010 09:08:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rewrite della home on Thu, 25 Nov 2010 11:13:40 GMT]]></title><description><![CDATA[<p dir="auto">Se intendi la pagina /alias.html a me non va in loop</p>
]]></description><link>https://dev.connect.gt/post/949252</link><guid isPermaLink="true">https://dev.connect.gt/post/949252</guid><dc:creator><![CDATA[ayrton2001]]></dc:creator><pubDate>Thu, 25 Nov 2010 11:13:40 GMT</pubDate></item><item><title><![CDATA[Reply to Rewrite della home on Thu, 25 Nov 2010 08:11:28 GMT]]></title><description><![CDATA[<p dir="auto">si, funziona per tutte le pagine. per la home se metto la regola di reindirizzamento tipo questa:<br />
RewriteRule ^index.php?q=1$ / [R=301,L]<br />
mi và in conflitto con un altra regola dell'htcaccess e non riesce a risolvere la pagina... sembra che vada in loop.<br />
solo che non sono esperto di regular expression e non trovo il problema.</p>
<p dir="auto">Riporto nuovamente  l'htaccess, magari qualcuno esperto mi può illuminare....</p>
<h1>Friendly url</h1>
<p dir="auto">RewriteEngine On<br />
RewriteBase /</p>
<h1>Fix Apache internal dummy connection from breaking [(site_url)] cache</h1>
<p dir="auto">RewriteCond %{HTTP_USER_AGENT} ^.<em>internal\ dummy\ connection.</em>$ [NC]<br />
RewriteRule .* - [F,L]</p>
<h1>Redirect from <a href="http://mydomain.com/rootname" rel="nofollow ugc">mydomain.com/rootname</a> to <a href="http://mydomain.com/rootname/" rel="nofollow ugc">mydomain.com/rootname/</a></h1>
<p dir="auto">RewriteRule ^en$ en/ [R=301,L]<br />
RewriteRule ^fr$ fr/ [R=301,L]<br />
RewriteRule ^es$ es/ [R=301,L]</p>
<h1>The Friendly URLs part</h1>
<p dir="auto">RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^es/(.<em>)$ index.php?q=$1 [L,QSA]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^en/(.</em>)$ index.php?q=$1 [L,QSA]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^fr/(.<em>)$ index.php?q=$1 [L,QSA]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^(.</em>)$ index.php?q=$1 [L,QSA]</p>
]]></description><link>https://dev.connect.gt/post/949261</link><guid isPermaLink="true">https://dev.connect.gt/post/949261</guid><dc:creator><![CDATA[fabryshock]]></dc:creator><pubDate>Thu, 25 Nov 2010 08:11:28 GMT</pubDate></item><item><title><![CDATA[Reply to Rewrite della home on Thu, 25 Nov 2010 00:31:58 GMT]]></title><description><![CDATA[<p dir="auto">Ciao fabryshock,<br />
a me funziona perfettamente. Il mod_rewrite è abilitato?</p>
]]></description><link>https://dev.connect.gt/post/949251</link><guid isPermaLink="true">https://dev.connect.gt/post/949251</guid><dc:creator><![CDATA[ayrton2001]]></dc:creator><pubDate>Thu, 25 Nov 2010 00:31:58 GMT</pubDate></item><item><title><![CDATA[Reply to Rewrite della home on Thu, 18 Nov 2010 12:29:55 GMT]]></title><description><![CDATA[<p dir="auto">In particolare, perchè se inserisco nel htaccess</p>
<p dir="auto">RewriteRule ^index.php?q=1$ / [R=301,L]<br />
mi continua a reindirizzare a /alias.html   quando digito nel browser www,miodominio,com ???</p>
]]></description><link>https://dev.connect.gt/post/949260</link><guid isPermaLink="true">https://dev.connect.gt/post/949260</guid><dc:creator><![CDATA[fabryshock]]></dc:creator><pubDate>Thu, 18 Nov 2010 12:29:55 GMT</pubDate></item></channel></rss>