<?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[Errore 404 se non presente index.html in url]]></title><description><![CDATA[<p dir="auto">Ciao.</p>
<p dir="auto">Ho un sito dove è presente una pagina (index.php) che fa girare il sito con htaccess leggendo da database.</p>
<p dir="auto">Esempio: www . sito . it/categoria/ articolo .html</p>
<p dir="auto">Codice htaccess:</p>
<p dir="auto">RewriteRule ^(.*).html$ index.php?id=$1&amp;pag=$2 [QSA,L]</p>
<p dir="auto">RewriteCond %{THE_REQUEST} ^(.<em>)index.php<br />
RewriteCond %{THE_REQUEST} ^(.</em>)index.html<br />
RewriteRule ^(.<em>)index.php$ http : // www . sito . it/ [R=301,L]<br />
RewriteCond %{HTTP_HOST} ^sito . it<br />
RewriteRule (.</em>) http : // www . sito . it/$1 [R=301,L]</p>
<p dir="auto">anche per fare in modo che l'url principare del sito sia www . sito . it/ che però restituisce 404 se non l'url non è www . sito . it / index .html</p>
<p dir="auto">Nel file index . php ho inserito una clausola</p>
<p dir="auto">$get_id = $_GET['id']; if($get_id==''){$get_id = "indice";}</p>
<p dir="auto">che impone di adottare la variabile 'indice' se nell'url non è presente nulla, di modo che possa leggere la homepage, ma invece mi restituisce 404 se manca nell'url index . html</p>
<p dir="auto">Come posso risolvere?</p>
]]></description><link>https://dev.connect.gt/topic/152563/errore-404-se-non-presente-index-html-in-url</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 01:10:44 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/152563.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Jun 2011 13:11:34 GMT</pubDate><ttl>60</ttl></channel></rss>