php - Restrict WHM/cPanel Access to user folder ~ -
i want restrict access direct folder in whm, example have website: samplesite.com
but @ same time if open server-whm.com/~samplesite
, can see content of website.
i need restrict access open website domain.
you can place rule first rule in samplesite/.htaccess
:
rewriteengine on rewritecond %{http_host} !^(www\.)?samplesite\.com$ [nc] rewriterule ^ - [f]
this allow /samplesite/
accessed samplesite.com
Comments
Post a Comment