snipt

Ctrl+h for KB shortcuts

Text only

turn off php register_globals in htaccess

php_value register_globals 0
https://snipt.net/embed/a1cd815420c754adddb325beee78395c/
/raw/a1cd815420c754adddb325beee78395c/
a1cd815420c754adddb325beee78395c
text
Text only
1
2019-07-19T00:41:54
True
False
False
/api/public/snipt/2408/
turn-off-php-register_globals-in-htaccess
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>php_value register_globals 0 </span></pre></div> </td></tr></table>
htaccess, php

ApacheConf

disable expires header for files ending in txt for using mint with drupal

1
2
3
<FilesMatch "\.(txt)$">
  ExpiresActive Off
</FilesMatch>
https://snipt.net/embed/56bff77530007eac2cb2464bb8b2e253/
/raw/56bff77530007eac2cb2464bb8b2e253/
56bff77530007eac2cb2464bb8b2e253
apacheconf
ApacheConf
3
2019-07-19T15:18:28
True
False
False
/api/public/snipt/2376/
disable-expires-header-for-files-ending-in-txt-for-using-mint-with-drupal
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nt">&lt;FilesMatch</span> <span class="s">&quot;\.(txt)$&quot;</span><span class="nt">&gt;</span> </span><span id="L-2"><a name="L-2"></a> <span class="nb">ExpiresActive</span> <span class="k">Off</span> </span><span id="L-3"><a name="L-3"></a><span class="nt">&lt;/FilesMatch&gt;</span> </span></pre></div> </td></tr></table>
apache, drupal, htaccess, mint

Text only

zend framework rewrite rules

1
2
3
4
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php
https://snipt.net/embed/5985ede54af7fe5fc939f2267c5830e6/
/raw/5985ede54af7fe5fc939f2267c5830e6/
5985ede54af7fe5fc939f2267c5830e6
text
Text only
4
2019-07-15T14:17:08
True
False
False
/api/public/snipt/1561/
zend-framework-rewrite-rules
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>RewriteEngine On </span><span id="L-2"><a name="L-2"></a>RewriteCond %{REQUEST_FILENAME} !-f </span><span id="L-3"><a name="L-3"></a>RewriteCond %{REQUEST_FILENAME} !-d </span><span id="L-4"><a name="L-4"></a>RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php </span></pre></div> </td></tr></table>
apache, htaccess