Create dynamic subdomains with .htaccess
<p>I have the page: <code>website.php</code> this page is used to display data from any site that users created in my system.
The parameters of the page are:</p>

<pre><code>domain.com/website.php?s=site_name&amp;p=page_id
</code></pre>

<p>How I can <strong>replace</strong> it with</p>

<pre><code>site_name.domain.com/page_id
</code></pre>

<p>with <code>.htaccess</code> only.</p>

<p>I found a code for <code>.htaccess</code> but I did not understand that how this change my parameters that I do not mess with <code>.htaccess</code> normally.</p>

<p>I'd love to help, thanks in advance</p>

<p>(like <a href="http://wix.com" rel="nofollow">http://wix.com</a> / <a href="https://www.sitebuilder.com/" rel="nofollow">https://www.sitebuilder.com/</a>)</p>

<hr>

<p>I want to replace <code>domain.co.il/website?s=site_name&amp;p=page_id</code> to <code>site_name.domain.co.il/page_id</code></p>