Skip to main content
  1. Home
  2. Knowledge Base
  3. CloudFlare
  4. Can I enable Cloudflare on a wildcard (*) subdomain?

Can I enable Cloudflare on a wildcard (*) subdomain?

Yes!

Cloudflare supports wildcard DNS records. Within Cloudflare, wildcard DNS records can be either through the Cloudflare Proxy or DNS-hosted-only.

Can I enable Cloudflare on my root domain (e.g., ggexample.com) that is an A record?

Yes!

When using the Cloudflare nameservers directly, you can enable Cloudflare’s proxy service on A or AAAA records.

While Cloudflare can proxy all types of HTTP traffic, it cannot be used for email and special care must be taken if you are proxying the main domain address to ensure the MX record address is not included in the Cloudflare Proxy.

To implement a redirect to www using .htaccess:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^ggexample.com$ [NC]
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ http://www.ggexample.com/$1 [R=301,L]

NOTE: replace “ggexample.com” in the above example with your actual domain name.

Was this article helpful?

Need Support?
Can't find the answer you're looking for?
Contact Support

Comments

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.