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,911
Thanks: 693
Thanked 4,198 Times in 3,213 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 1 hour ago
1 day 6 hours ago
1 day 11 hours ago
1 day 13 hours ago
2 days 3 hours ago
2 days 3 hours ago
2 days 8 hours ago
2 days 15 hours ago
2 days 15 hours ago
2 days 17 hours ago