<?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, url rewrite e blocco accesso a file]]></title><description><![CDATA[<p dir="auto">Ciao a tutti!</p>
<p dir="auto">Nel file htaccess ho la stringa che mi permette di riscrivere una url, che FUNZIONA BENE:<br />
RewriteRule ^news-topic-([0-9]*).html file.php?name=News&amp;new_topic=$1 [L]</p>
<p dir="auto">Il mio problema è che se uno scrive nella barra degli indirizzi del browser "file.php" accede a file.php.</p>
<p dir="auto">Poichè io non voglio che questo accada, potete aiutarmi a scrivere qualcosa nel file .htaccess che non faccia entrare nessuno direttamente a "file.php"?</p>
<p dir="auto">GRAZIE</p>
]]></description><link>https://dev.connect.gt/topic/59937/htaccess-url-rewrite-e-blocco-accesso-a-file</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 22:33:28 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/59937.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Jan 2008 18:10:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to .htaccess, url rewrite e blocco accesso a file on Fri, 18 Jan 2008 15:16:56 GMT]]></title><description><![CDATA[<p dir="auto">ciao, le scelte son due:</p>
<ul>
<li>limiti tramite htaccess con allow/deny</li>
<li>usi php</li>
</ul>
<p dir="auto">io userei PHP, almeno puoi scegliere dove mandare l'utente (header location) se tenta di accedere direttamente a file.php invece di mandargli l'errore 403 access denied</p>
<p dir="auto">array $_SERVER<br />
[REQUEST_URI] =&gt; /url/richiesta.html<br />
[SCRIPT_NAME] =&gt; /file.php</p>
<p dir="auto">ti basta controllare che REQUEST_URI sia diverso da /file.php <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://dev.connect.gt/post/667377</link><guid isPermaLink="true">https://dev.connect.gt/post/667377</guid><dc:creator><![CDATA[osvi]]></dc:creator><pubDate>Fri, 18 Jan 2008 15:16:56 GMT</pubDate></item><item><title><![CDATA[Reply to .htaccess, url rewrite e blocco accesso a file on Wed, 16 Jan 2008 11:08:43 GMT]]></title><description><![CDATA[<p dir="auto">up</p>
]]></description><link>https://dev.connect.gt/post/667386</link><guid isPermaLink="true">https://dev.connect.gt/post/667386</guid><dc:creator><![CDATA[james.87]]></dc:creator><pubDate>Wed, 16 Jan 2008 11:08:43 GMT</pubDate></item><item><title><![CDATA[Reply to .htaccess, url rewrite e blocco accesso a file on Tue, 15 Jan 2008 18:55:45 GMT]]></title><description><![CDATA[<p dir="auto">up</p>
]]></description><link>https://dev.connect.gt/post/667384</link><guid isPermaLink="true">https://dev.connect.gt/post/667384</guid><dc:creator><![CDATA[james.87]]></dc:creator><pubDate>Tue, 15 Jan 2008 18:55:45 GMT</pubDate></item><item><title><![CDATA[Reply to .htaccess, url rewrite e blocco accesso a file on Mon, 14 Jan 2008 09:35:40 GMT]]></title><description><![CDATA[<p dir="auto">up</p>
]]></description><link>https://dev.connect.gt/post/667382</link><guid isPermaLink="true">https://dev.connect.gt/post/667382</guid><dc:creator><![CDATA[james.87]]></dc:creator><pubDate>Mon, 14 Jan 2008 09:35:40 GMT</pubDate></item></channel></rss>