snipt

Ctrl+h for KB shortcuts

ApacheConf

Przekierowanie z subdomeny www

RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule (.*) http://%1%{REQUEST_URI} [R=301,L,QSA]
https://snipt.net/embed/b5ece811f78e258fd7c635176e87231e/
/raw/b5ece811f78e258fd7c635176e87231e/
b5ece811f78e258fd7c635176e87231e
apacheconf
ApacheConf
2
2019-07-21T17:20:39
True
False
False
/api/public/snipt/48138/
przekierowanie-z-subdomeny-www
<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></span><span id="L-1"><a name="L-1"></a><span class="nb">RewriteCond</span> %{HTTP_HOST} ^www\.(.*) </span><span id="L-2"><a name="L-2"></a><span class="nb">RewriteRule</span> (.*) http://%1%{REQUEST_URI} [R=301,L,QSA] </span></pre></div> </td></tr></table>
Apache, www