• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
htaccess for redirecting all requests to public folder in shared hosting

#9
(09-01-2020, 07:42 AM)[email protected] Wrote: Could you point to the explanation via web, why it is not a recommended practice? Thank you in advance.

I don't know any articles by heart and haven't written any myself on the topic, but it's basically this:
In case your web server gets miss-configured and it dosen't read your .htaccess file or PHP for some reason don't evaluate your files, people can access everything from the url. That's what the extra security provides, you can't access those files under any circumstances from an url (as it's one level up) even if your web-server setting changes.
Reply


Messages In This Thread
RE: htaccess for redirecting all requests to public folder in shared hosting - by jreklund - 09-01-2020, 09:47 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.