Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 24, 2012, 02:34:41 AM

Pages: [1]   Go Down
  Print  
Author Topic: htaccess in TOP LEVEL DIRECTORY ?  (Read 2836 times)
SJ
Intergalactic Superstar
*****
Offline Offline

Posts: 157


« on: March 15, 2011, 05:51:24 AM »

Hi, I have a htaccess in my public_html (and one for each other site) but should there be one in the in the very TOP LEVEL DIRECTORY folder (which holds trash, logs, mail etc) ?

if so, could you tell me what should be in it ? I want my other sites to run on their own htaccess.

Thanks
Logged
SJ
Intergalactic Superstar
*****
Offline Offline

Posts: 157


« Reply #1 on: March 15, 2011, 03:25:10 PM »

Anyone ? Confused
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5212



« Reply #2 on: March 15, 2011, 06:31:22 PM »

No. public_html is the highest web-accessible directory (your root, which HTML sees as "/"). Any .htaccess file above that (/home/ACCOUNTNAME/) will be ignored and is useless, because the Web cannot access that directory via HTTP. A hacker who has planted a script file (such as .php) could use it to read or write files above public_html, but .htaccess won't be processed when a script is run.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
SJ
Intergalactic Superstar
*****
Offline Offline

Posts: 157


« Reply #3 on: March 15, 2011, 06:45:51 PM »

Cheers Mr Phil  Thumbs Up
Logged
wilmatan
Intergalactic Cowboy
*****
Offline Offline

Posts: 56



« Reply #4 on: May 03, 2011, 07:50:21 AM »

That was great MrPhil!  Thanks for the explanation.  Hiya Hiya Hiya
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: