Redirect Domain.com to www1.Domain.com

ABDULLAHDOn

Newbie
Joined
Mar 7, 2019
Messages
15
Reaction score
0
hi,

I am facing too many DMCAs that's why I want to redirect my domain to www1.domain.com. Please tell me how can I do it. What is the full procedure to make that kind of redirection. If you can lead me a video source or tell me all the steps by steps then I will be really thankful.
 
<script>window.location.href = "www1.domain.com";</script>
 
1) Add www1.yourdomain.com to your server
2) Edit htaccess and add this :



Change youdomain with your actual domain

For this, I have to buy www1.yourdomain.com or it is the sub-domain of yourdomain.com. I think it is a subdomain. Then After creating subdomain I just have to put the above code in .htaccess or there are some other things I have to do. If it very simple question then I am sorry.
 
For this, I have to buy www1.yourdomain.com or it is the sub-domain of yourdomain.com. I think it is a subdomain. Then After creating subdomain I just have to put the above code in .htaccess or there are some other things I have to do. If it very simple question then I am sorry.
It's the subdomain of course ;)
Create that subdomain, then add the code on htaccess
If your website is http then replace https:// by http://
 
Done and it is redirecting but I am not getting content.
 
How? Can you explain more

You can check the screenshot. How I can transfer my content on that subdomain. because right now website is showing nothing.
 

Attachments

  • Capture.JPG
    Capture.JPG
    48.3 KB · Views: 30
Look better, you ytold you want www1 but on your screen, it's ww1

I does not matter what name you give your subdomain. I followed the steps. Actually, the problem is you are just saying to create a subdomain and then .htaccess redirection but this is not enough because how the content will show. Their is no content on subdomain. So for that I have to transfer my content on that subdomain. But how to do that. I think you did not do that before.
 
I have many sites doing this because of dmca, I never had to "move content". Anyway, I hope you will find a solution.
 
I have many sites doing this because of dmca, I never had to "move content". Anyway, I hope you will find a solution.

Can you create a video for me please. Just create a video and upload it on youtube and share its link. Please that will be really helpful. I need the solution. If you know it then please help.
 
Code:
https://stackoverflow.com/questions/1031341/how-do-i-redirect-domain-to-subdomain-using-htaccess
https://stackoverflow.com/questions/29097291/htaccess-301-redirect-from-main-domain-to-subdomain
 
Last edited by a moderator:
I'm not using cpanel, i'm on a vps with vestacp, just add subdomain on your control panel, are you using cloudflare?
 
Oops sorry If my wording was wrong. I am not blaming you, friend. Even If you don't know, at least you tried. Thanks a lot.
 
Back
Top