<?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[htaccess e redirect su 404]]></title><description><![CDATA[<p dir="auto">Ciao a tutti e buon post-pasqua,<br />
ho installato amember su un sito. L'installazione in sé è andata benone ma non riesco a far abilitare una funzione per me importante.</p>
<p dir="auto">Per l'esattezza nella pagina del pannello mi trovo questa scritta</p>
<blockquote>
<p dir="auto">new_rewrite (RewriteRule doesn't work in .htaccess files on this server)<br />
Most advanced method of protection - user will see your custom HTML login form. This method can protect ANY type of content, and will NOT cause problems with complex PHP scripts residing in protected area.<br />
Access sharing prevention works automatically with this plugin.</p>
</blockquote>
<p dir="auto">Con il Radio button relativo all'abilitazione della funzione disattivato.</p>
<p dir="auto">Ho frugato un po' tra il codice è sono arrivato a capire che il problema è in questo pezzo di codice.</p>
<blockquote>
<p dir="auto">$ret = get_url($url = "$config[root_url]/plugins/protect/new_rewrite/tests/mod_rewrite/1.php",'',0,1);<br />
if (!strlen($ret))<br />
return "<a href="/hashtags/unable">#Unable</a> to fetch result of test from $url.";<br />
elseif ($ret != '2-second_file')<br />
return "RewriteRule doesn't work in .htaccess files on this server";</p>
</blockquote>
<p dir="auto">Con 1.php che contiene questo valore "1-first_file" e con 2.php che contiene "2-second_file"</p>
<p dir="auto">Questo codice va di pari passo con il htaccess che è cosi combinato</p>
<blockquote>
<p dir="auto">&lt;Limit GET POST&gt;<br />
allow from all<br />
&lt;/Limit&gt;<br />
Options +FollowSymLinks<br />
RewriteEngine On<br />
RewriteRule 1.php 2.php</p>
</blockquote>
<p dir="auto">Da quello che ho capito del codice dovrebbe fare questo:</p>
<ol>
<li>chiama al file 1.php</li>
<li>l'htaccess rigira su 2.php</li>
<li>se il rewrite funziona, mi risponde con il valore di 2.php</li>
</ol>
<p dir="auto">Il problema è che invece mi rigira sulla pagina 404 standard... Perché? <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/ad0a1f8d-b404-40e4-a46a-e563b14044da-dho.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--arrabbiato" style="height:1.4em;width:auto;vertical-align:middle" title=":x" alt="" /></p>
]]></description><link>https://dev.connect.gt/topic/125036/htaccess-e-redirect-su-404</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 15:50:07 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/125036.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Apr 2010 08:43:19 GMT</pubDate><ttl>60</ttl></channel></rss>