ワイルドカードを正常にインストールしました。そして、動的サブドメインを簡単なトリックで動作させることができました。
.htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# *.example.com
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9]+)\.example\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/?subdomain\.php$
RewriteRule .? subdomain.php?subdomain=%1&path=%{REQUEST_URI} [L,QSA]
現在、something.example.com に subdomain.php の出力が表示されています。
しかし、私はそれを機能させたいので、私はで入ることができます
pre102.example.com/folder/anotherfolder/script.php?param=1
の出力を表示します
example.com/folder/anotherfolder/script.php?param=1&pre=102