I want to use zzzzzzz instead of * as my wildcard subdomain and have created an actual subdomain zzzzzzz and modified my httpd.conf to the following
|*if SUB="zzzzzzzz"|
ServerAlias *.|DOMAIN|
|*endif|
After doing this my subdomain site delivered a File Not Found error.
Here is the .htaccess
RewriteEngine On
RewriteBase /blogs/
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
I am running an apache Centos with DirectAdmin-
What am I forgetting to do? Should I remove the * A record because keeping would seem to negate the benefit of the zzzzzzz wildcard?