Allow overwrite est Off

296 views
Skip to first unread message

ad...@francecricket.com

unread,
Jan 8, 2015, 11:41:30 AM1/8/15
to jor...@googlegroups.com
Bonjour,
Je viens d'installer Jorani sur mon site, hébergé chez OVH.

En lancant la page requirements.php, j'ai le message suivant:
Allow overwrite (.htaccess files)Off (used for cool URLs).

Avez-vous une idée de comment pourrais-je activer cette option?

Merci d'avance.

Benjamin BALET

unread,
Jan 8, 2015, 11:47:00 AM1/8/15
to ad...@francecricket.com, jor...@googlegroups.com
OVH autorise les fichiers .htaccess est-ce que par hasard tu ne l'auras pas supprimé? Il est également possible que le fichier ne soit pas présent (à vérifier avec un client FTP).

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jorani/f1d05491-0bf7-4f83-9edd-50e850549920%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ad...@francecricket.com

unread,
Jan 8, 2015, 11:55:45 AM1/8/15
to jor...@googlegroups.com, ad...@francecricket.com
Bonjour,
Merci pour ta réponse rapide.

Les fichiers .htaccess sont bien présents.

Contenu du fichier .htaccess à la racine du répertoire "www":
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
SetEnv PHP_VER 5


Contenu du fichier  .htaccess à la racine du répertoire "Jorani":
SetEnv ALLOW_OVERWRITE On
<IfModule mod_rewrite.c>
    Options +FollowSymLinks

    RewriteEngine On
    # Tell PHP that the mod_rewrite module is ENABLED.
    SetEnv HTTP_MOD_REWRITE On

    ### Canonicalize codeigniter URLs
    RewriteRule ^(welcome(/index)?|index(\.php)?)/?$ / [L,R=301]
    RewriteRule ^(.*)/index/?$ $1 [L,R=301]
 
    # Removes trailing slashes (prevents SEO duplicate content issues)
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)/$ $1 [L,R=301]
 
    # Enforce www
    # If you have subdomains, you can add them to 
    # the list using the "|" (OR) regex operator
    #RewriteCond %{HTTP_HOST} !^(www|subdomain) [NC]
    #RewriteRule ^(.*)$ http://www.domain.tld/$1 [L,R=301]
 
    # Enforce NO www
    #RewriteCond %{HTTP_HOST} ^www [NC]
    #RewriteRule ^(.*)$ http://domain.tld/$1 [L,R=301]
 
    ###
     # Removes access to the system folder by users.
    # Additionally this will allow you to create a System.php controller,
    # previously this would not have been possible.
    # 'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php/$1 [L]
 
    # Checks to see if the user is attempting to access a valid file,
    # such as an image or css document, if this isn't true it sends the
    # request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L] 
</IfModule>
 
<IfModule !mod_rewrite.c> 
    # Without mod_rewrite, route 404's to the front controller
    SetEnv HTTP_MOD_REWRITE Off
    ErrorDocument 404 "Error : Module rewrite is not available check your system with requirements.php"
 </IfModule>

Benjamin BALET

unread,
Jan 8, 2015, 12:01:10 PM1/8/15
to ad...@francecricket.com, jor...@googlegroups.com
Je ne pense pas que tu puisse pouvoir faire marcher jorani avec une règle confictuelle (RewriteBase /) déjà présente dans un répertoire de niveau supérieur (parce qu'il y a héritage).
Je te conseille de créer un sous-domaine (c'est illimité et gratuit chez OVH) et d'installer jorani dans un répertoire différent de www.

2015-01-08 17:55 GMT+01:00 <ad...@francecricket.com>:
RewriteBase /


ad...@francecricket.com

unread,
Jan 8, 2015, 12:56:08 PM1/8/15
to jor...@googlegroups.com, ad...@francecricket.com
Youpi!
ça fonctionne!
Merci beaucoup.

Administrateur France Cricket

unread,
Jan 8, 2015, 3:09:39 PM1/8/15
to jor...@googlegroups.com
Bonsoir Benjamin,
J'ai un autre problème (d'incompréhension de ma part)...
Lorsque je clique sur un bouton (URL derrière le bouton = http://jorani.francecricket.com/leaves/create) , j'ai le message suivant : 
File not found.

Alors que si j'ajoute "index.php" entre "http://jorani.francecricket.com/" et "/leaves/create (donc http://jorani.francecricket.com/leaves/create), la page est bien accessible...

Pourrais-tu stp m'éclairer?

Merci de ton aide.

Benjamin BALET

unread,
Jan 8, 2015, 3:16:13 PM1/8/15
to Administrateur France Cricket, jor...@googlegroups.com
Le fichier .htaccess n'est effectivement pas pris en compte...
Peut-être demander de l'aide sur un forum OVH ? Des fois il y a des employés d'OVH qui trouvent dans la seconde de quoi il s'agit (parce qu'ils ont accès à ta configuration).

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages