<?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[Problema con phpbb2plus e mod rewrite]]></title><description><![CDATA[<p dir="auto">Salve a tutti, qualcuno può aiutarmi?</p>
<p dir="auto">Sto testando il phpbb2plus su server Linux, ho abilitato il mod. rewrite preinstallato dal pannello admin, ed ho aggiunto il seguente htacces come da istruzioni:</p>
<hr />
<p dir="auto">DirectoryIndex index.html index.htm portal.php index.php</p>
<p dir="auto">############################################################</p>
<p dir="auto">RewriteEngine On</p>
<p dir="auto">############################################################</p>
<h1>prevent access from santy webworm a-e</h1>
<p dir="auto">RewriteCond %{QUERY_STRING} ^(.<em>)highlight=%2527 [OR]<br />
RewriteCond %{QUERY_STRING} ^(.</em>)rush=%65%63%68 [OR]<br />
RewriteCond %{QUERY_STRING} ^(.<em>)rush=echo [OR]<br />
RewriteCond %{QUERY_STRING} ^(.</em>)echr(.<em>) [OR]<br />
RewriteCond %{QUERY_STRING} ^(.</em>)esystem(.<em>) [OR]<br />
RewriteCond %{QUERY_STRING} ^(.</em>)union(.<em>) [OR]<br />
RewriteCond %{QUERY_STRING} ^(.</em>)UNION(.<em>) [OR]<br />
RewriteCond %{QUERY_STRING} ^(.</em>)alert(document(.<em>) [OR]<br />
RewriteCond %{QUERY_STRING} ^(.</em>)SQL_INJECTION(.<em>) [OR]<br />
RewriteCond %{QUERY_STRING} ^(.</em>)wget%20<br />
RewriteRule ^.*$ <a href="http://127.0.0.1/" rel="nofollow ugc">http://127.0.0.1/</a> [R,L]</p>
<h1>prevent pre php 4.3.10 bug</h1>
<p dir="auto">RewriteCond %{HTTP_COOKIE}% s:(.<em>):%22test1%22%3b<br />
RewriteRule ^.</em>$ <a href="http://127.0.0.1/" rel="nofollow ugc">http://127.0.0.1/</a> [R,L]</p>
<h1>prevent perl user agent (most often used by santy)</h1>
<p dir="auto">RewriteCond %{HTTP_USER_AGENT} ^lwp.* [NC]<br />
RewriteRule ^.*$ <a href="http://127.0.0.1/" rel="nofollow ugc">http://127.0.0.1/</a> [R,L]</p>
<p dir="auto">#########################################################</p>
<h1>Mod Rewrite Rules for Static URLs can be found in this file.</h1>
<h1></h1>
<h1>You have to set the correct Path to your Forum here otherwise this will not work !</h1>
<h1>Just change the "YOUR_PATH" in the below code to the path your Forum uses.</h1>
<h1>For example if your Forum can be reached at <a href="http://www.myforum.com/phpBB2/" rel="nofollow ugc">http://www.myforum.com/phpBB2/</a> you have</h1>
<h1>to set the path to this</h1>
<h1></h1>
<h1>RewriteBase /phpBB2/</h1>
<h1>^^^^^^</h1>
<h1></h1>
<h1>If your Forum can be reached at <a href="http://www.myforum.com" rel="nofollow ugc">http://www.myforum.com</a> you can delete the path part</h1>
<h1></h1>
<h1>RewriteBase /</h1>
<h1></h1>
<h1>After making all needed changes in this file rename it to .htaccess and delete the original</h1>
<h1>.htaccess file</h1>
<p dir="auto">############################################################</p>
<p dir="auto">RewriteBase /phpBB2/</p>
<h1>extended rewriting only for .html [thx to Caterham]</h1>
<p dir="auto">RewriteRule !.html$ - [L]</p>
<p dir="auto">RewriteRule ^forums.html$ index.php [L]</p>
<p dir="auto">RewriteRule ^forumc([0-9]<em>).html$ index.php?c=$1 [L]<br />
RewriteRule ^forumc([0-9]</em>),(.*).html$ index.php?c=$1 [L]</p>
<p dir="auto">RewriteRule ^viewforum([0-9]<em>)-([0-9]</em>)-([0-9]<em>).html$ viewforum.php?f=$1&amp;topicdays=$2&amp;start=$3 [L]<br />
RewriteRule ^viewforum([0-9]</em>)-([0-9]<em>)-([0-9]</em>),(.*).html$ viewforum.php?f=$1&amp;topicdays=$2&amp;start=$3 [L]</p>
<p dir="auto">RewriteRule ^forum([0-9]<em>).html$ viewforum.php?f=$1 [L]<br />
RewriteRule ^forum([0-9]</em>),(.*).html$ viewforum.php?f=$1 [L]</p>
<p dir="auto">RewriteRule ^ptopic([0-9]<em>).html$ viewtopic.php?t=$1&amp;view=previous [L]<br />
RewriteRule ^ntopic([0-9]</em>).html$ viewtopic.php?t=$1&amp;view=next [L]</p>
<h2>RewriteRule ^ftopic([0-9]<em>)-([0-9]</em>)-([a-zA-Z]<em>)-([0-9]</em>).html$ viewtopic.php?t=$1&amp;postdays=$2&amp;postorder=$3&amp;start=$4 [L]<br />
RewriteRule ^ftopic([0-9]<em>).html$ viewtopic.php?t=$1&amp;start=$2&amp;postdays=$3&amp;postorder=$4&amp;highlight=$5 [L]<br />
RewriteRule ^ftopic([0-9]</em>)-([0-9]<em>).html$ viewtopic.php?t=$1&amp;start=$2 [L]<br />
RewriteRule ^ftopic([0-9]</em>).html$ viewtopic.php?t=$1 [L]<br />
RewriteRule ^fpost([0-9]*).html$ viewtopic.php?p=$1 [L]</h2>
<p dir="auto">Ho corretto il percorso... e alla fine mi da Internal Error.</p>
<ol>
<li>Il phpbb2plus è stato installato in un sottodominio, cmq mettendo tutte le varianti dei percorsi possibili non ho avuto risultati.</li>
<li>facendo una copia e posizionandolo nella root principale non da risultati.</li>
</ol>
<p dir="auto">Root principale: home/malina/public_html/<br />
Root sottodominio: home/malina/public_html/forum<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/8dfea2c6-baa4-48ad-9022-ab237b734846-fumato5.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--fumato" style="height:1.4em;width:auto;vertical-align:middle" title=":fumato:" alt="" /></p>
]]></description><link>https://dev.connect.gt/topic/46495/problema-con-phpbb2plus-e-mod-rewrite</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 02:57:46 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/46495.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Sep 2007 19:01:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problema con phpbb2plus e mod rewrite on Thu, 13 Sep 2007 17:03:46 GMT]]></title><description><![CDATA[<p dir="auto">Ho risolto...</p>
]]></description><link>https://dev.connect.gt/post/598809</link><guid isPermaLink="true">https://dev.connect.gt/post/598809</guid><dc:creator><![CDATA[robert13]]></dc:creator><pubDate>Thu, 13 Sep 2007 17:03:46 GMT</pubDate></item></channel></rss>