htaccess error

Our support will answer all your general questions here.

Moderator: Rock

Post Reply
8teenbay
Posts: 19
Joined: Tue May 19, 2015 4:42 pm
Contact:

htaccess error

Post by 8teenbay »

Hello,

Moved my website to a new server with the same php configuration (7.3) and out going traffic stopped working. I also see this error and don't know how to fix it really since I don't have a server administrator: ".htaccess file in your /te3/ directory is not working. Currently anyone can access files inside your "tedata" directory and that is a huge security flaw. You have to protect your "tedata" directory immediately. Consult your server administrator"

Can you help me? Thanks in advance!
texpert
Site Admin
Posts: 719
Joined: Sat Mar 14, 2009 5:54 pm

Re: htaccess error

Post by texpert »

Hello,

it's hard to say why your .htaccess is not working. Maybe you are using nginx?


Best regards,
Alex
8teenbay
Posts: 19
Joined: Tue May 19, 2015 4:42 pm
Contact:

Re: htaccess error

Post by 8teenbay »

texpert wrote:Hello,

it's hard to say why your .htaccess is not working. Maybe you are using nginx?


Best regards,
Alex
Yes, I'm using Nginx. I moved to a new server and now it's not working fine. Anyway, the last server was also working with Nginx and I had any problem
texpert
Site Admin
Posts: 719
Joined: Sat Mar 14, 2009 5:54 pm

Re: htaccess error

Post by texpert »

Hello,

the nginx doesn't support .htaccess (see here).
You can import your .htaccess to nginx.conf (maybe the htaccess to nginx converter helps you).

example:
location ^~ /te3/tedata {
deny all;
}

Best regards,
Alex
Post Reply