Hello.
On my host root i have my main website and there are also some subfolders with some other sites aswell that are related with their own domain names.
I'm looking for a way to block the direct access to those subfolders maybe with a redirect for example www.mainsite.com/othersite to redirect to www.mainsite.com.
Is there a code that i can add to my htaccess file to make this work?
Kind regards
On my host root i have my main website and there are also some subfolders with some other sites aswell that are related with their own domain names.
I'm looking for a way to block the direct access to those subfolders maybe with a redirect for example www.mainsite.com/othersite to redirect to www.mainsite.com.
Is there a code that i can add to my htaccess file to make this work?
Kind regards
Statistics: Posted by thodorisgo — Thu Apr 25, 2024 7:33 pm