My domain mainsite.com is actual pointed to /public_html/ .
But i want to point it to sub-site like /public_html/subsite .
So i tried this :
RewriteCond %{HTTP_HOST} ^(www\.)?mainsite\.com$ [NC]
RewriteRule !^(subsite) /subsite%{REQUEST_URI} [L,NC]
It working fine .
Now 2nd is i have many sub-site/sub-folder under /public_html/subsite like /public_html/subsite/(site1 or others...) .
But when i type mainsite.com/(site1 or others...) then it showing me this url mainsite.com/subsite/(site1 or others...) which i don't want.
I want to hide only /subsite/ from url when user browse.
www.mydomain.com/error/this url, which actual path iswww.mydomain.com/site1/error/so i want to hide/site1/wihout changing url. – Debar Sep 20 '16 at 19:30