Submitted by dper on
Bonjour,
J'ai galéré pendant 2 jours avec mon installation Drupal sur OVH.
Tout s'est bien passé pendant l'installation (Ou plutôt les installations) et quand je cliquais sur le lien "page d'administration", la page qui s'affichait était : http://mon_domaine/admin et j'obtenais le message "Accès refusé" .... (En PJ)
En rajoutant ?q= (http://mon_domaine/?q=admin) la page s'affichait mais tous les liens présents me ramenaient vers "Accès refusé" ....
J'ai contourné le pb en désactivant clean-url dans http://mon_domaine/?q=admin/settings/clean-urls
Maintenant je n'ai plus de message d'erreur.
Ma question est Pourquoi ça a fait ça?
Merci
Dom
Fichier attaché | Taille |
---|---|
Capturer.JPG | 42.76 Ko |
parce que le serveur doit
Permalien Soumis par izus le 28 Juin, 2010 - 11:25
parce que le serveur doit savoir convertir les url (se passer des ?q=)
jettes un coup d'oeil sur ces deux liens:
http://drupalfr.org/forum/support/support-general/1990-url-simplifies
http://drupal.org/node/15365
OK, Merci bien pour cette
Permalien Soumis par dper le 30 Juin, 2010 - 10:43
OK,
Merci bien pour cette réponse. J'ai suivi les conseils et j'ai modifié mon .htaccess.
Dans clean url's, le test me dit que mon serveur supporte les urls raccourci et pourtant que je les active, ça ne marche pas.
Ci-dessous mon .htacccess, quelqu'un peut-il regarder vite fait si j'ai fait une boulette.
Merci
Dom
#
Apache/PHP/Drupal settings:
#
SetEnv PHP_VER 5
SetEnv REGISTER_GLOBALS 0
Protect files and directories from prying eyes.
<FilesMatch ".
(engine|inc|info|install|make|module|profile|test|po|sh|.*
sql|theme|tpl(.php)?|xtmpl|svn-base)$|^(code-
style.pl|Entries.*|Repository|Root|Tag|Template|all-
wcprops|entries|format)$">
Order allow,deny
Don't show directory listings for URLs which map to
a directory.
Options -Indexes
Follow symbolic links in this directory.
Options +FollowSymLinks
Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php
Force simple error message for requests for non-
existent favicon.ico.
# There is no end quote below, for compatibility with
Apache 1.3.
ErrorDocument 404 "The requested file favicon.ico
was not found.
Set the default handler.
DirectoryIndex index.php
Override PHP settings. More in
sites/default/settings.php
but the following cannot be changed at runtime.
PHP 4, Apache 1.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
php_value register_globals off
PHP 4, Apache 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
php_value register_globals off
PHP 5, Apache 1 and 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
php_value register_globals off
Requires mod_expires to be enabled.
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not allow PHP scripts to be cached unless
they explicitly send cache
# headers themselves. Otherwise all scripts would
have to overwrite the
# headers set by mod_expires if they want another
caching behavior. This may
# fail if an error occurs early in the bootstrap
process, and it may cause
# problems if a non-Drupal PHP file is installed in a
subdirectory.
ExpiresActive Off
Various rewrite rules.
RewriteEngine on
# If your site can be accessed both with and without
the 'www.' prefix, you
# can use one of the following settings to redirect
users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix.
Choose ONLY one option:
#
# To redirect all users to access the site WITH the
'www.' prefix,
# (http://example.com/... will be redirected to
http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example.com$
[NC]
# RewriteRule ^(.*)$ http://www.example.com/$1
[L,R=301]
#
# To redirect all users to access the site WITHOUT
the 'www.' prefix,
# (http://www.example.com/... will be redirected to
http://example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST}
^www.example.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1
[L,R=301]
# Modify the RewriteBase if you are using Drupal in
a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not
working properly.
# For example if your site is at
http://example.com/drupal uncomment and
# modify the following line:
RewriteBase /zportail
#
# If your site is running in a VirtualDocumentRoot at
http://example.com/,
# uncomment the following line:
#RewriteBase /
# Rewrite URLs of the form 'x' to the form
'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
$Id: .htaccess,v 1.90.2.5 2010/02/02 07:25:22 dries
Exp $