Tag Info

Hot answers tagged


Use a negation RewriteCond %{HTTP_HOST} !^www\.domain\.com$ RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]


It seems that AuthType is provided by the mod_authn_core in Apache 2.4. I don't see that module loaded in the list you provided.


We can see the source code of the http authenticator in the apache httpd here: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/aaa/mod_auth_basic.c In the function get_basic_auth() and in authenticate_basic_users() we can clearly see, that the interpretation of the .htaccess file happens in two steps: gets the line of the .htaccess describing ...


the .htaccess should go in the root directory of your application instead of the /php folder. For example: wordpress git:(master) ls -la total 32 drwxr-xr-x 11 User staff 374 Aug 13 17:03 . drwxr-xr-x 4 User staff 136 Aug 13 16:56 .. drwxr-xr-x 13 User staff 442 Aug 13 17:07 .git -rw-r--r-- 1 User staff 9 Aug 13 16:56 .gitignore ...

Only top voted, non community-wiki answers of a minimum length are eligible