I'm really having an issue with unexisting subdomains. For example, I have created the example.com domain with www. as auto-subdomain, but the problem is that if I go to 1029ur0pa.example.com it'll still open, just as www.example.com
So, how can I fix that? Any body had this issue before?
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
The recommended way is to fix the dns record, remove the wildcard record and replace it eith records for subdomains that exist. Wildcard records are bad for search engine ranks anyway.
Then ensure tht you did not select * as auto subdomain in the site settings for the same reason.
If you dont want to alter the dns in the first strp, then create a catchall vhost.
Posts: 233
Thanks: 27
Thanked 56 Times in 31 Posts
If you use the "*." auto-subdomain on the site you can set a htaccess file with a rewrite for all requests other than www.example.com and example.com to reply with a 404.
Recent comments
1 day 10 hours ago
1 day 19 hours ago
1 day 21 hours ago
1 day 23 hours ago
2 days 36 min ago
2 days 2 hours ago
2 days 3 hours ago
2 days 4 hours ago
2 days 20 hours ago
2 days 21 hours ago