apache (mamp) avec .htaccess : err 500
Bonjour,
Je suis en virtualHost avec Mamp, tout fonctionne correctement (enfin car il m'a deja fallu plusieurs mois pour y parvenir ...:calim2:). Et maintenant que j'ajoute mon .htaccess le serveur affiche une erreur 500 ???
Le contenu du .htaccess :
Code:
1 2 3 4 5 6 7 8
|
RewriteEngine On
RewriteRule ^admin/ bootstrap.php?app=Backend [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ bootstrap.php?app=Frontend [QSA,L] |
Si le document .htaccess est vide, pas d'erreur 500 (tous les documents du fichier apparaissent), des que je l'ecrit puis l'enregistre, erreur 500....
Par contre si j'accede en localHost au dossier contenant le .htaccess, tout fonctionne parfaitement .... :ptdr:
Quelques extrait de mon httpd.conf
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
LoadModule alias_module libexec/apache2/mod_alias.so
#LoadModule rewrite_module libexec/apache2/mod_rewrite.so
#LoadModule php7_module libexec/apache2/libphp7.so
#LoadModule perl_module libexec/apache2/mod_perl.so
LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so
<Directory "/Library/WebServer/Documents">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options FollowSymLinks Multiviews
MultiviewsMatch Any
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
Require all denied
</FilesMatch>
#
# Apple specific filesystem protection.
#
<Files "rsrc">
Require all denied
</Files>
<DirectoryMatch ".*\.\.namedfork">
Require all denied
</DirectoryMatch> |
Si quelqu'un a une idee, merci de votre aide :P