snipt

Ctrl+h for KB shortcuts
Sign up for : store and share your own code snippets.
#137717

Text only

htaccess change all files from .html to .php

RewriteEngine on
RedirectMatch 301 (.*)\.html$ $1.php
https://snipt.net/embed/30c204ead09242223505f6b10e45ef4c/
https://snipt.net/raw/30c204ead09242223505f6b10e45ef4c/
30c204ead09242223505f6b10e45ef4c
text
Text only
2
2015-02-26T10:13:58
True
False
/api/public/snipt/137717/
htaccess-change-all-files-from-html-to-php-848ce893
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>RewriteEngine on </span><span id="L-2"><a name="L-2"></a>RedirectMatch 301 (.*)\.html$ $1.php </span></pre></div> </td></tr></table>
html, php, to
#136385

HTML

html header mobile

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html lang="id" xmlns="http://www.w3.org/1999/xhtml">
https://snipt.net/embed/270184a8ff14ac85c51ed46f18ac7fc9/
https://snipt.net/raw/270184a8ff14ac85c51ed46f18ac7fc9/
270184a8ff14ac85c51ed46f18ac7fc9
html
HTML
2
2015-02-23T17:32:24
True
True
Sep 09, 2014 at 01:13 AM
/api/public/snipt/136385/
html-header-mobile-728f51b0
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="cp">&lt;!DOCTYPE html PUBLIC &quot;-//WAPFORUM//DTD XHTML Mobile 1.0//EN&quot; &quot;http://www.wapforum.org/DTD/xhtml-mobile10.dtd&quot;&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="nt">&lt;html</span> <span class="na">lang=</span><span class="s">&quot;id&quot;</span> <span class="na">xmlns=</span><span class="s">&quot;http://www.w3.org/1999/xhtml&quot;</span><span class="nt">&gt;</span> </span></pre></div> </td></tr></table>
html, mobile
#121041

HTML

Pepper Alert Example

1
2
3
4
<div data-alert class="alert-box warning radius">
  Hmm, something went wrong there. Try again?
  <a href="#" class="close">&times;</a>
</div>
https://snipt.net/embed/356d5ec609b3da5a0735e18e00145ac7/
https://snipt.net/raw/356d5ec609b3da5a0735e18e00145ac7/
356d5ec609b3da5a0735e18e00145ac7
html
HTML
4
2015-02-19T15:27:07
True
False
Mar 11, 2014 at 05:18 PM
/api/public/snipt/121041/
pepper-alert-example
<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 id="L-1"><a name="L-1"></a><span class="nt">&lt;div</span> <span class="na">data-alert</span> <span class="na">class=</span><span class="s">&quot;alert-box warning radius&quot;</span><span class="nt">&gt;</span> </span><span id="L-2"><a name="L-2"></a> Hmm, something went wrong there. Try again? </span><span id="L-3"><a name="L-3"></a> <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">&quot;#&quot;</span> <span class="na">class=</span><span class="s">&quot;close&quot;</span><span class="nt">&gt;</span><span class="ni">&amp;times;</span><span class="nt">&lt;/a&gt;</span> </span><span id="L-4"><a name="L-4"></a><span class="nt">&lt;/div&gt;</span> </span></pre></div> </td></tr></table>
alert, html
Copyrighted, illegal, or inappropriate content? Email [email protected].