I have one sudomain: http://demo.ikeepstudying.com/.
Under this, I have one client folder: intowealth.
I want to add two files:
.htaccess file
AuthType Basic
AuthName "Administration"
AuthUserFile /demo/intowealth/.htpasswd
require valid-user
RewriteEngine On
RewriteRule ^attend/(.+)/([0-9]+)(.htm)*$ /intowealth/index.html?type=$1&event_id=$2 [L]
and .htpasswd file, that is not working for URL rewrite, the error is :
If I remove
AuthType Basic
AuthName "Administration"
AuthUserFile /demo/intowealth/.htpasswd
require valid-user
the URL rewrite will be working well.
But how can I keep both of them in same .htaccess file?