There are some ways to redirect all sub-domains , but the very easiest way redirect by using .htaccess

Go to your file manager ,  open your .htaccess ;  if you don’t have .htaccess file into your file manager then create the file and use the following codes :

RewriteEngine On

RewriteCond %{HTTP_HOST} ^[^.]+\.(domain\.com)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L,NE]

 

That’s it .

Bipul
Bipul

Jobair Alam Bipul and I’m a 31-year-old tech enthusiast from Bangladesh. have been working in the E-commerce, Domain and Web Hosting industry for more than 10 years

Articles: 67

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

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