Jump to content

how to disable redirect html file on a folder with .htaccess


septiy23

Recommended Posts

Hi All

 

I have directory fiole like this

 

my_website/flash/file.html

 

I want to disable redirect to file.html via URL.

 

I have create .htpasswd and create .htaccess in flash folder with this code

 

# the auth block

AuthName "Please login."

AuthGroupFile /dev/null

AuthType Basic

AuthUserFile C:/xampp/htdocs/.htpasswd

 

# Here is where we allow/deny

Order Deny,Allow

Satisfy any

Deny from all

Require valid-user

Allow from env=noauth

 

Satisfy any

 

 

its Work, people cant redirect via change the URL but it also occurs with valid user via Login Session.

 

How to Set .htaccess file for bypass the .htpasswd via login Session user ?

 

How to solve it?

 

thanks

 

  • 5 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.