Results 1 to 2 of 2

Thread: some help with htaccess file

  1. #1
    freetesting is offline Junior Member
    Join Date
    Mar 2016
    Posts
    1

    Default some help with htaccess file

    hello everyone , i have a folder call admin and inside this folder i have a file admin.php and i put also 2 other files htaccess and htpasswd . but when i upload my file via FTP and after i type my site address/admin/admin.php it ask me for username and password but after give me a error
    Code:
    There was an error.
    
    This error can occur because of a syntactically incorrect .htaccess file , entered by you or one of your scripts in the current folder , or from your site that tries to establish a connection to an external server unreachable
    Code:
    Options -Indexes
    
    AuthType Basic
    AuthName "Restricted Area"
    AuthUserFile /freetesting.altervista.org/admin/.htpasswd
    require valid-user

  2. #2
    karl94 is offline AlterVista Staff
    Join Date
    Jan 2015
    Posts
    570

    Default

    The path is wrong, it should be /membri/freetesting/admin/.htpasswd. However, why didn't you use the integrated tool in the control panel to manage .htaccess based authentication? You just need to click on the padlock near the directory path (next to the PHP5 and FTP buttons in the File management section).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO