Sub-domain Advice - Stop access to sub-folder directly


New Member
I want to create a sub-domain for one of my sites. I can do this but the site can be viewed by going directly to the sub-folder, eg.: can also be viewed by going to

Would this cause an issue with Google, etc? How can I redirect those going to to the correct address of ?

Thanks for any help :)
In your public_html's .htaccess, put the following:

RewriteRule ^(thesite/.*)$$1 [R=301,L,NC]


New Member
When you create a subdomain in cPanel it auto-populates with public_html and the start. You could also trim that so it's alongside the public_html folder instead of within it. That's the way I've always preferred.