-
-
Save michelmany/878a2a3019bbabb068e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
$subdomains = str_replace('.seudominio.com.br','',$_SERVER['HTTP_HOST']); | |
$subdomains = explode('.',$subdomains); | |
var_dump($subdomains); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName seudominio.com.br | |
ServerAlias *.seudominio.com.br | |
DocumentRoot /var/www/seudominio.com.br | |
# Demais diretrizes... | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment