The subdomain of my website is redirecting in this way – https://www.example.com/blog How do I get it in this format? – https://www.blog.example.com
Since I have put this code in my website, I am having this problem.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Rahul Jadon
Thank You Sir. It’s Working…..
Jaiveer Manjhi
Don’t worry, You just replace your code with this –
With WWW –
Without WWW –