[eluser]JanDoToDo[/eluser]
Hey guys
When I put some basic authentication on one of my folders my site stops working. Could anyone explain this/ help!?
.htaccess next to system, application and index.php
RewriteEngine on
RewriteBase /
#RewriteCond $1 !^(index\.php|index\.html|assets|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)? index.php?/$1 [L]
And I have a folder which would be /assets/scripts/payment/ that I need to have basic authentication on. When I put this htaccess inside the payment directory, it errors and says "page cannot be found" as thoguht it isnt rewriting the url anymore
AuthName "Admin section"
AuthUserFile "/home/studentc/.htpasswds/public_html/assets/scripts/payment/passwd"
AuthType Basic
require valid-user
Why would adding authentication stop this page from working?
Cheers for any help !!!