I have one problem: I want to set up PHP and htaccess to make dynamic subdomains. And I can not figure out how. Currently my URL looks like this:
www.exemple.com
OF COURSE you can interprete dynamic subdomains with htaccess. The following rule will solve the problem.
RewriteCond %{HTTP_HOST} www\.([^.]+)\.example\.com [NC]
RewriteRule ^/content/([0-9]+)/([a-zA-Z0-9_\-])\.html /index.php?subdomain=%1&component=content&id=$1&title=$2 [L]
so anyone visting
www.mike.exemple.com/content/26/people-love-apps.html
will see the content of
www.exemple.com/index.php?subdomain=mike&component=content&id=26&title=people-love-apps