create wildcard subdomain

i have a lot of subdomains, so i need create wildcard to make redirect from all subdomain to main Domain.

you can manually change it to * in listner or apache conf

Type your comment> @qtwrk said:

you can manually change it to * in listner or apache conf

Can you explain how? Thank you

in step 2 , you can use * for that vhost to match wildcard domain

Type your comment> @qtwrk said:

[Tutorial] How to access my site with IP address. — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

in step 2 , you can use * for that vhost to match wildcard domain

Not working :frowning:
still not redirect any subdomain to main domain…

you need a rewrite rule to redirect it

Type your comment> @qtwrk said:

you need a rewrite rule to redirect it

apache - htaccess: exluce some domain in RewriteCond - Stack Overflow

sorry, Not working.
with CPanel i can create wildcard and make redirection, with cyberpanel i can create wildcare

what not working ? what was your setting?

Thank you for replay.
in CPanel i can create wildcard as subdomain and create htaccess in it with redirect. and it working
in cyberpanel, i can’t create wildcard as subdomain.

@MahmoudNassar said:
Thank you for replay.
in CPanel i can create wildcard as subdomain and create htaccess in it with redirect. and it working
in cyberpanel, i can’t create wildcard as subdomain.

Yes, you can enter whatever subdomain that is, then follow the guide I provided to change it to wildcard

Type your comment> @qtwrk said:

@MahmoudNassar said:
Thank you for replay.
in CPanel i can create wildcard as subdomain and create htaccess in it with redirect. and it working
in cyberpanel, i can’t create wildcard as subdomain.

Yes, you can enter whatever subdomain that is, then follow the guide I provided to change it to wildcard

in cpanel, i can crate subdomain like “*.sitename.com”, but i cant create it in cyberpanel

Yes, for the time being , you can enter whatever subdomain that is, like abc.domain.com , then follow the guide I provided to change it to wildcard *

Type your comment> @qtwrk said:

Yes, for the time being , you can enter whatever subdomain that is, like abc.domain.com , then follow the guide I provided to change it to wildcard *

i’m so sorry, but how can i change it?

@qtwrk said:
[Tutorial] How to access my site with IP address. — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

in step 2 , you can use * for that vhost to match wildcard domain

Type your comment> @qtwrk said:

@qtwrk said:
[Tutorial] How to access my site with IP address. — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

in step 2 , you can use * for that vhost to match wildcard domain

Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you :kissing_heart:
it’s working :+1: