@aniya.jaskolski
To redirect a subdomain in .htaccess, you can use the following code:
1 2 3 |
RewriteEngine On RewriteCond %{HTTP_HOST} ^subdomain.example.com$ RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] |
In this code snippet:
Make sure to replace "subdomain.example.com" with your actual subdomain and domain name. You can also change the destination URL in the RewriteRule to redirect to a different location.