<?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 redirect 301 e joomla]]></title><description><![CDATA[<p dir="auto">Ho un problemuccio, devo fare un redirect 301 per determinate pagine del sito adesso aggiornate a nuova url:</p>
<p dir="auto"><strong>index.php?option=com_contact&amp;Itemid=20</strong><br />
redirect to <strong>contatti.html</strong></p>
<p dir="auto"><strong>index.php?option=com_content&amp;task=view&amp;id=5&amp;Itemid=8</strong><br />
redirect to <strong>manutenzione.html</strong></p>
<p dir="auto">Etc</p>
<p dir="auto">ho provato la classica stringa:</p>
<p dir="auto">Redirect 301 /old.php /new.php</p>
<p dir="auto">ma non fungica.</p>
<p dir="auto">Di seguito il mio file .htaccess:</p>
<h2></h2>
<h1>@version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z ircmaxell $</h1>
<h1>@package Joomla</h1>
<h1>@copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.</h1>
<h1>@license GNU/GPL</h1>
<h1>Joomla! is Free Software</h1>
<h2></h2>
<p dir="auto">#####################################################</p>
<h1>READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE</h1>
<h1></h1>
<h1>The line just below this section: 'Options +FollowSymLinks' may cause problems</h1>
<h1>with some server configurations. It is required for use of mod_rewrite, but may already</h1>
<h1>be set by your server administrator in a way that dissallows changing it in</h1>
<h1>your .htaccess file. If using it causes your server to error out, comment it out (add # to</h1>
<h1>beginning of line), reload your site in your browser and test your sef url's. If they work,</h1>
<h1>it has been set by your server administrator and you do not need it set here.</h1>
<h1></h1>
<p dir="auto">#####################################################</p>
<h2>Can be commented out if causes errors, see notes above.</h2>
<p dir="auto"><a href="/hashtags/options">#Options</a> +FollowSymLinks</p>
<h1></h1>
<h1>mod_rewrite in use</h1>
<p dir="auto">RewriteEngine On</p>
<h1>Uncomment following line if your webserver's URL</h1>
<h1>is not directly related to physical file paths.</h1>
<h1>Update Your Joomla! Directory (just / for root)</h1>
<h1>RewriteBase /</h1>
<p dir="auto">########## Begin - Joomla! core SEF Section</p>
<h1></h1>
<p dir="auto">RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond %{REQUEST_URI} !^/index.php<br />
RewriteCond %{REQUEST_URI} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]<em>)$ [NC]<br />
RewriteRule (.</em>) index.php<br />
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]</p>
<h1></h1>
<p dir="auto">########## End - Joomla! core SEF Section</p>
<p dir="auto">########## Begin - Rewrite rules to block out some common exploits</p>
<h2>If you experience problems on your site block out the operations listed below</h2>
<h2>This attempts to block the most common type of exploit <code>attempts</code> to Joomla!</h2>
<h1></h1>
<h1>Block out any script trying to set a mosConfig value through the URL</h1>
<p dir="auto">RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]</p>
<h1>Block out any script trying to base64_encode crap to send via URL</h1>
<p dir="auto">RewriteCond %{QUERY_STRING} base64_encode.<em>(.</em>) [OR]</p>
<h1>Block out any script that includes a &lt;script&gt; tag in URL</h1>
<p dir="auto">RewriteCond %{QUERY_STRING} (&lt;|%3C).<em>script.</em>(&gt;|%3E) [NC,OR]</p>
<h1>Block out any script trying to set a PHP GLOBALS variable via URL</h1>
<p dir="auto">RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]</p>
<h1>Block out any script trying to modify a _REQUEST variable via URL</h1>
<p dir="auto">RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})</p>
<h1>Send all blocked request to homepage with 403 Forbidden error!</h1>
<p dir="auto">RewriteRule ^(.*)$ index.php [F,L]</p>
<h1></h1>
<p dir="auto">########## End - Rewrite rules to block out some common exploits</p>
<p dir="auto">Come posso fare ?</p>
<p dir="auto">Grazie in anticipo.</p>
]]></description><link>https://dev.connect.gt/topic/72261/htaccess-redirect-301-e-joomla</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 19:57:15 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/72261.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 May 2008 16:41:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to .htaccess redirect 301 e joomla on Wed, 21 May 2008 22:10:59 GMT]]></title><description><![CDATA[<p dir="auto">Ok ci sono riuscito, sbagliavo mettendo i redirect a fine pagina, mettendoli appena dopo la stringa commentata # RewriteBase / tutto funziona.</p>
<p dir="auto"><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/post/715880</link><guid isPermaLink="true">https://dev.connect.gt/post/715880</guid><dc:creator><![CDATA[fabione]]></dc:creator><pubDate>Wed, 21 May 2008 22:10:59 GMT</pubDate></item></channel></rss>