Forum Moderators: phranque
RewriteEngine On
Example:
mySUbdomain.example.com/user/ID
When I check also main domain like example.com/user/ID it will be also the same content as it is inside public_html.
Yes, I like to eliminate example.com/subdomain/blahblah as it is subdomain.example.com/blahbla as working URL.
Yes, I like to eliminate example.com/subdomain/blahblah as it is subdomain.example.com/blahbla as working URL.
RewriteRule ^(sub1|sub2|sub3)/(.*) https://$1.example.com/$2 [R=301,L]That is the best-case solution. It depends on how complicated the site is.