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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -