<?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 come si imposta e dove si mette?]]></title><description><![CDATA[<p dir="auto">Ciao a tutti, come spiegavo già nel mio post precedente (<a href="http://www.giorgiotave.it/forum/google/248906-2-domande-per-passare-da-standard-responsive-e-recuperare-posizioni.html" rel="nofollow ugc">http://www.giorgiotave.it/forum/google/248906-2-domande-per-passare-da-standard-responsive-e-recuperare-posizioni.html</a>) stò cercando di capire e sistemare i miei sitarelli, in questo caso <a href="http://nastri-trasportatori.net" rel="nofollow ugc">nastri-trasportatori.net</a></p>
<p dir="auto">Come per l'altro mio sito, mi affido all'analisi di pagespeed insights per cercare di migliorare e recuperare posizioni (accetto suggerimenti di ogni tipo e riguardo ad altri analizzatori), e anche in questo caso pagespeed insights mi dice "Sfrutta il caching del browser"  "scadenza non specificata" ... per quello che avevo capito io, sarebbe bastato creare e immettere nel dominio un file .htaccess con le indicazioni di scadenza, cosa che ho fatto, ma al momento pagespeed insights continua a dirmi le stesse cose:</p>
<p dir="auto"><strong>Mi aiutereste a capire dove sbaglio e come correggermi?</strong></p>
<p dir="auto"><em>PS: oltre a questo</em> <em>pagespeed insights mi dà altri suggerimenti che non riesco a capire/seguire: ho cercato nel forum se vi fosse una sorta di guida o tutorial esplicativo di come applicare i suggerimenti di pagespeed insights, ma non ho trovato nulla, avete qualcosa da segnalarmi o posso continuare a "rompere le scatole quì" compiendo un passo alla volta con una domanda alla volta?</em></p>
]]></description><link>https://dev.connect.gt/topic/228538/htaccess-come-si-imposta-e-dove-si-mette</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 11:52:20 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/228538.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Feb 2017 11:13:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to .htaccess come si imposta e dove si mette? on Sun, 05 Mar 2017 19:45:56 GMT]]></title><description><![CDATA[<p dir="auto">... uffa, ma perchè continua a dirmi che "scadenza non specificata" anchee se come si vede ho inserito i percorsi corretti ???</p>
<p dir="auto">cosa sbaglio ancora?</p>
<p dir="auto"><img src="http://i64.tinypic.com/zweyy0.jpg" alt="" class="img-markdown  img-fluid" /></p>
]]></description><link>https://dev.connect.gt/post/1234330</link><guid isPermaLink="true">https://dev.connect.gt/post/1234330</guid><dc:creator><![CDATA[arluc]]></dc:creator><pubDate>Sun, 05 Mar 2017 19:45:56 GMT</pubDate></item><item><title><![CDATA[Reply to .htaccess come si imposta e dove si mette? on Sun, 26 Feb 2017 18:14:07 GMT]]></title><description><![CDATA[<p dir="auto">... in quest altro sito <a href="http://www.conveyor-belt-sushi.com" rel="nofollow ugc">http://www.conveyor-belt-sushi.com</a> ho creato il .htaccess (vedi sotto) così come indicato in questo tutorial (<a href="http://trovalost.it/2015/05/come-impostare-la-cache-del-browser-via-htaccess/" rel="nofollow ugc">http://trovalost.it/2015/05/come-impostare-la-cache-del-browser-via-htaccess/</a>)<br />
nonostante questo, page speed tools mi dice comunque:  <em>"<a href="https://developers.google.com/speed/docs/insights/LeverageBrowserCaching" rel="nofollow ugc">Utilizza la memorizzazione nella cache del browser</a> per le seguenti risorse memorizzabili nella cache:</em></p>
<ul>
<li><em><a href="http://www.conveyor-belt-sushi.com/assets/animate.css/animate.min.css" rel="nofollow ugc">http://www.conveyor-belt-sushi.com/assets/animate.css/animate.min.css</a> (scadenza non specificata)</em></li>
<li><em><a href="http://www.conveyor-belt-sushi.com/%E2%80%A6rousel-swipe/bootstrap-carousel-swipe.js" rel="nofollow ugc">http://www.conveyor-belt-sushi.com/…rousel-swipe/bootstrap-carousel-swipe.js</a> (scadenza non specificata)</em></li>
<li><em>...."</em></li>
</ul>
<p dir="auto"><strong>... ma perchè?? Cosa sbaglio?? :bho:</strong></p>
<p dir="auto">.htaccess =</p>
<blockquote>
<p dir="auto">&lt;IfModule mod_expires.c&gt;<br />
ExpiresActive On<br />
ExpiresByType image/jpg "access 1 year"<br />
ExpiresByType image/jpeg "access 1 year"<br />
ExpiresByType image/gif "access 1 year"<br />
ExpiresByType image/png "access 1 year"<br />
ExpiresByType text/css "access 1 month"<br />
ExpiresByType text/html "access 1 month"<br />
ExpiresByType application/pdf "access 1 month"<br />
ExpiresByType text/x-javascript "access 1 month"<br />
ExpiresByType application/x-shockwave-flash "access 1 month"<br />
ExpiresByType image/x-icon "access 1 year"<br />
ExpiresDefault "access 1 month"<br />
&lt;/IfModule&gt;</p>
<p dir="auto">&lt;ifModule mod_gzip.c&gt;<br />
mod_gzip_on Yes<br />
mod_gzip_dechunk Yes<br />
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$<br />
mod_gzip_item_include handler ^cgi-script$<br />
mod_gzip_item_include mime ^text/.*<br />
mod_gzip_item_include mime ^application/x-javascript.*<br />
mod_gzip_item_exclude mime ^image/.*<br />
mod_gzip_item_exclude rspheader ^Content-Encoding:.<em>gzip.</em><br />
&lt;/ifModule&gt;</p>
</blockquote>
]]></description><link>https://dev.connect.gt/post/1234327</link><guid isPermaLink="true">https://dev.connect.gt/post/1234327</guid><dc:creator><![CDATA[arluc]]></dc:creator><pubDate>Sun, 26 Feb 2017 18:14:07 GMT</pubDate></item><item><title><![CDATA[Reply to .htaccess come si imposta e dove si mette? on Sun, 26 Feb 2017 17:18:26 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>PsYCHo</strong></p>
<p dir="auto">inoltre molti problemi li puoi risolvere utilizzando un plugin per la cache (ad esempio w3 total cache).</p>
</blockquote>
<p dir="auto">Ciao, dimenticavo di dire che sono un profano ... ho cercato W3 TOTAL CACHE ma pare essere una roba per wordpress, e poi non ho capito come si usa, potresti spiegarmi meglio?</p>
<blockquote>
<p dir="auto"><strong>PsYCHo</strong></p>
<p dir="auto">bisognerebbe vedere come hai impostato l' .htaccess</p>
</blockquote>
<p dir="auto">Ciao, in <a href="http://www.nastri-trasportatori.net" rel="nofollow ugc">www.nastri-trasportatori.net</a> il file .htaccess contiene:</p>
<p dir="auto">(premetto che ho trovato il file .htaccess on line e che l'ho copia pari pari senza capirlo, per questo, oltre all'aiuto immediato chiedevo un aiuto per capire meglio come creare il file e dove metterlo ...)</p>
<blockquote>
<h1>INIZIO W3TC Browser Cache</h1>
<p dir="auto">&lt;IfModule mod_mime.c&gt;<br />
AddType text/css .css<br />
AddType application/javascript .js<br />
AddType application/x-javascript .js<br />
AddType text/html .html .htm<br />
AddType text/richtext .rtf .rtx<br />
AddType image/svg+xml .svg .svgz<br />
AddType text/plain .txt<br />
AddType text/xsd .xsd<br />
AddType text/xsl .xsl<br />
AddType text/xml .xml<br />
AddType video/asf .asf .asx .wax .wmv .wmx<br />
AddType video/avi .avi<br />
AddType image/bmp .bmp<br />
AddType application/java .class<br />
AddType video/divx .divx<br />
AddType application/msword .doc .docx<br />
AddType application/x-msdownload .exe<br />
AddType image/gif .gif<br />
AddType application/x-gzip .gz .gzip<br />
AddType image/x-icon .ico<br />
AddType image/jpeg .jpg .jpeg .jpe<br />
AddType application/vnd.ms-access .mdb<br />
AddType audio/midi .mid .midi<br />
AddType video/quicktime .mov .qt<br />
AddType audio/mpeg .mp3 .m4a<br />
AddType video/mp4 .mp4 .m4v<br />
AddType video/mpeg .mpeg .mpg .mpe<br />
AddType application/vnd.ms-project .mpp<br />
AddType application/vnd.oasis.opendocument.database .odb<br />
AddType application/vnd.oasis.opendocument.chart .odc<br />
AddType application/vnd.oasis.opendocument.formula .odf<br />
AddType application/vnd.oasis.opendocument.graphics .odg<br />
AddType application/vnd.oasis.opendocument.presentation .odp<br />
AddType application/vnd.oasis.opendocument.spreadsheet .ods<br />
AddType application/vnd.oasis.opendocument.text .odt<br />
AddType audio/ogg .ogg<br />
AddType application/pdf .pdf<br />
AddType image/png .png<br />
AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx<br />
AddType audio/x-realaudio .ra .ram<br />
AddType application/x-shockwave-flash .swf<br />
AddType application/x-tar .tar<br />
AddType image/tiff .tif .tiff<br />
AddType audio/wav .wav<br />
AddType audio/wma .wma<br />
AddType application/vnd.ms-write .wri<br />
AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw<br />
AddType application/zip .zip<br />
&lt;/IfModule&gt;</p>
<h1>FINE W3TC Browser Cache</h1>
<h1>INIZIO E-Tag</h1>
<p dir="auto">&lt;ifModule mod_headers.c&gt;<br />
Header unset ETag<br />
&lt;/ifModule&gt;<br />
FileETag None</p>
<h1>FINE E-Tag</h1>
<h1>INIZIO Nega accesso al file htaccess.</h1>
<p dir="auto">&lt;Files .htaccess&gt;<br />
Order allow,deny<br />
Deny from all<br />
&lt;/Files&gt;</p>
<h1>FINE Nega accesso al file htaccess.</h1>
<h1>INIZIO Nega accesso per il file config.php di vBulletin (SOLO PER VBULLETIN)</h1>
<p dir="auto">&lt;Files includes/config.php&gt;<br />
Order allow,deny<br />
Deny from all<br />
&lt;/Files&gt;</p>
<h1>FINE Nega accesso per il file config.php di vBulletin (SOLO PER VBULLETIN)</h1>
<h1>INIZIO Mime-Type</h1>
<p dir="auto">&lt;IfModule mod_mime.c&gt;<br />
AddType text/css .css<br />
AddType text/richtext .rtf .rtx<br />
AddType image/svg+xml .svg .svgz<br />
AddType text/plain .txt<br />
AddType text/xsd .xsd<br />
AddType text/xsl .xsl<br />
AddType video/asf .asf .asx .wax .wmv .wmx<br />
AddType video/avi .avi<br />
AddType image/bmp .bmp<br />
AddType application/java .class<br />
AddType video/divx .divx<br />
AddType application/msword .doc .docx<br />
AddType application/x-msdownload .exe<br />
AddType image/gif .gif<br />
AddType application/x-gzip .gz .gzip<br />
AddType image/x-icon .ico<br />
AddType image/jpeg .jpg .jpeg .jpe<br />
AddType application/vnd.ms-access .mdb<br />
AddType audio/midi .mid .midi<br />
AddType video/quicktime .mov .qt<br />
AddType audio/mpeg .mp3 .m4a<br />
AddType video/mp4 .mp4 .m4v<br />
AddType video/mpeg .mpeg .mpg .mpe<br />
AddType application/vnd.ms-project .mpp<br />
AddType application/vnd.oasis.opendocument.database .odb<br />
AddType application/vnd.oasis.opendocument.chart .odc<br />
AddType application/vnd.oasis.opendocument.formula .odf<br />
AddType application/vnd.oasis.opendocument.graphics .odg<br />
AddType application/vnd.oasis.opendocument.presentation .odp<br />
AddType application/vnd.oasis.opendocument.spreadsheet .ods<br />
AddType application/vnd.oasis.opendocument.text .odt<br />
AddType audio/ogg .ogg<br />
AddType application/pdf .pdf<br />
AddType image/png .png<br />
AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx<br />
AddType audio/x-realaudio .ra .ram<br />
AddType application/x-shockwave-flash .swf<br />
AddType application/x-tar .tar<br />
AddType image/tiff .tif .tiff<br />
AddType audio/wav .wav<br />
AddType audio/wma .wma<br />
AddType application/vnd.ms-write .wri<br />
AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw<br />
AddType application/zip .zip<br />
&lt;/IfModule&gt;</p>
<h1>FINE Mime-Type</h1>
<h1>INIZIO Expires Headers</h1>
<p dir="auto">&lt;IfModule mod_expires.c&gt;<br />
ExpiresActive On<br />
ExpiresByType text/css A2628000<br />
ExpiresByType text/richtext A3600<br />
ExpiresByType image/svg+xml A3600<br />
ExpiresByType text/plain A3600<br />
ExpiresByType text/xsd A3600<br />
ExpiresByType text/xsl A3600<br />
ExpiresByType video/asf A2628000<br />
ExpiresByType video/avi A2628000<br />
ExpiresByType image/bmp A2628000<br />
ExpiresByType application/java A2628000<br />
ExpiresByType video/divx A2628000<br />
ExpiresByType application/msword A2628000<br />
ExpiresByType application/x-msdownload A2628000<br />
ExpiresByType image/gif A2628000<br />
ExpiresByType application/x-gzip A2628000<br />
ExpiresByType image/x-icon A2628000<br />
ExpiresByType image/jpeg A2628000<br />
ExpiresByType application/vnd.ms-access A2628000<br />
ExpiresByType audio/midi A2628000<br />
ExpiresByType video/quicktime A2628000<br />
ExpiresByType audio/mpeg A2628000<br />
ExpiresByType video/mp4 A2628000<br />
ExpiresByType video/mpeg A2628000<br />
ExpiresByType application/javascript A2628000<br />
ExpiresByType application/x-javascript A2628000<br />
ExpiresByType application/vnd.ms-project A2628000<br />
ExpiresByType application/vnd.oasis.opendocument.database A2628000<br />
ExpiresByType application/vnd.oasis.opendocument.chart A2628000<br />
ExpiresByType application/vnd.oasis.opendocument.formula A2628000<br />
ExpiresByType application/vnd.oasis.opendocument.graphics A2628000<br />
ExpiresByType application/vnd.oasis.opendocument.presentation A2628000<br />
ExpiresByType application/vnd.oasis.opendocument.spreadsheet A2628000<br />
ExpiresByType application/vnd.oasis.opendocument.text A2628000<br />
ExpiresByType audio/ogg A2628000<br />
ExpiresByType application/pdf A2628000<br />
ExpiresByType image/png A2628000<br />
ExpiresByType application/vnd.ms-powerpoint A2628000<br />
ExpiresByType audio/x-realaudio A2628000<br />
ExpiresByType application/x-shockwave-flash A2628000<br />
ExpiresByType application/x-tar A2628000<br />
ExpiresByType image/tiff A2628000<br />
ExpiresByType audio/wav A2628000<br />
ExpiresByType audio/wma A2628000<br />
ExpiresByType application/vnd.ms-write A2628000<br />
ExpiresByType application/vnd.ms-excel A2628000<br />
ExpiresByType application/zip A2628000<br />
&lt;/IfModule&gt;</p>
<h1>FINE Expires Headers</h1>
<h1>INZIO Compressione file testo</h1>
<p dir="auto">&lt;ifModule mod_deflate.c&gt;<br />
AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain<br />
AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml<br />
AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml<br />
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json<br />
AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf<br />
AddOutputFilterByType DEFLATE font/truetype font/opentype</p>
<h1>rimozione bug browser</h1>
<p dir="auto">BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
BrowserMatch ^Mozilla/4.0[678] no-gzip<br />
BrowserMatch bMSIE !no-gzip !gzip-only-text/html<br />
&lt;/ifModule&gt;</p>
<h1>FINE Compressione file testo</h1>
<h1>INIZIO Cache-Control Headers</h1>
<p dir="auto">&lt;ifModule mod_headers.c&gt;<br />
&lt;filesMatch ".(ico|jpe?g|png|gif|swf)$"&gt;<br />
Header set Cache-Control "max-age=29030400, public"<br />
&lt;/filesMatch&gt;<br />
&lt;filesMatch ".(css)$"&gt;<br />
Header set Cache-Control "public"<br />
&lt;/filesMatch&gt;<br />
&lt;filesMatch ".(js)$"&gt;<br />
Header set Cache-Control "private"<br />
&lt;/filesMatch&gt;<br />
&lt;filesMatch ".(x?html?|php)$"&gt;<br />
Header set Cache-Control "private, must-revalidate"<br />
&lt;/filesMatch&gt;<br />
&lt;/ifModule&gt;</p>
<h1>FINE Cache-Control Headers</h1>
<h1>Blocco per User-agent Libwww-perl</h1>
<p dir="auto">RewriteEngine On<br />
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*<br />
RewriteRule .* ? [F,L]</p>
<h1>proc/self/environ? no!</h1>
<p dir="auto">RewriteCond %{QUERY_STRING} proc/self/environ [OR]</p>
<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>
<h2></h2>
<h2>Commented version of Rewrite rules attributed to Ronald van den Heetkamp</h2>
<h2>Comments by <a href="http://bodvoc.com" rel="nofollow ugc">http://bodvoc.com</a></h2>
<h1></h1>
<h1>Prevent use of specified methods in HTTP Request</h1>
<p dir="auto">RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK) [NC,OR]</p>
<h1>Block out use of illegal or unsafe characters in the HTTP Request</h1>
<p dir="auto">RewriteCond %{THE_REQUEST} ^.<em>(r|n|%0A|%0D).</em> [NC,OR]</p>
<h1>Block out use of illegal or unsafe characters in the Referer Variable of the HTTP Request</h1>
<p dir="auto">RewriteCond %{HTTP_REFERER} ^(.<em>)(&lt;|&gt;|'|%0A|%0D|%27|%3C|%3E|%00).</em> [NC,OR]</p>
<h1>Block out use of illegal or unsafe characters in any cookie associated with the HTTP Request</h1>
<p dir="auto">RewriteCond %{HTTP_COOKIE} ^.<em>(&lt;|&gt;|'|%0A|%0D|%27|%3C|%3E|%00).</em> [NC,OR]</p>
<h1>Block out use of illegal characters in URI or use of malformed URI</h1>
<p dir="auto">RewriteCond %{REQUEST_URI} ^/(,|;|:|&lt;|&gt;|"&gt;|"&lt;|/|..).{0,9999}.* [NC,OR]</p>
<h1>NOTE - disable this rule if your site is integrated with Payment Gateways such as PayPal</h1>
<h1>Block out  use of empty User Agent Strings</h1>
<p dir="auto">RewriteCond %{HTTP_USER_AGENT} ^$ [OR]</p>
<h1>Block out  use of User Agent Strings beginning with java, curl or wget</h1>
<p dir="auto">RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget).* [NC,OR]</p>
<h1>Block out  use of User Agent Strings containing specific robot (crawler) identifiers</h1>
<p dir="auto">RewriteCond %{HTTP_USER_AGENT} ^.<em>(winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner).</em> [NC,OR]</p>
<h1>Block out  use of User Agent Strings containing references to specific crawler libraries</h1>
<p dir="auto">RewriteCond %{HTTP_USER_AGENT} ^.<em>(libwww-perl|curl|wget|python|nikto|scan).</em> [NC,OR]</p>
<h1>Block out  use of illegal or unsafe characters in the User Agent variable</h1>
<p dir="auto">RewriteCond %{HTTP_USER_AGENT} ^.<em>(&lt;|&gt;|'|%0A|%0D|%27|%3C|%3E|%00).</em> [NC,OR]</p>
<h1>Measures to block out  SQL injection attacks</h1>
<p dir="auto">RewriteCond %{QUERY_STRING} ^.<em>(;|&lt;|&gt;|'|"|)|%0A|%0D|%22|%27|%3C|%3E|%00).</em>(/*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC,OR]</p>
<h1>Block out  reference to localhost/loopback/127.0.0.1 in the Query String</h1>
<p dir="auto">RewriteCond %{QUERY_STRING} ^.<em>(localhost|loopback|127.0.0.1).</em> [NC,OR]</p>
<h1>Block out  use of illegal or unsafe characters in the Query String variable</h1>
<p dir="auto">RewriteCond %{QUERY_STRING} ^.<em>(&lt;|&gt;|'|%0A|%0D|%27|%3C|%3E|%00).</em> [NC]</p>
<h1></h1>
<h2>End of commented Rewrite directives</h2>
</blockquote>
]]></description><link>https://dev.connect.gt/post/1234329</link><guid isPermaLink="true">https://dev.connect.gt/post/1234329</guid><dc:creator><![CDATA[arluc]]></dc:creator><pubDate>Sun, 26 Feb 2017 17:18:26 GMT</pubDate></item><item><title><![CDATA[Reply to .htaccess come si imposta e dove si mette? on Sun, 26 Feb 2017 14:41:38 GMT]]></title><description><![CDATA[<p dir="auto">Ciao, bisognerebbe vedere come hai impostato l' .htaccess; inoltre molti problemi li puoi risolvere utilizzando un plugin per la cache (ad esempio w3 total cache).</p>
]]></description><link>https://dev.connect.gt/post/1234326</link><guid isPermaLink="true">https://dev.connect.gt/post/1234326</guid><dc:creator><![CDATA[dario.scarano]]></dc:creator><pubDate>Sun, 26 Feb 2017 14:41:38 GMT</pubDate></item></channel></rss>