[réglé] URLs explicites (SEF): oui et erreur 500 chez ovh

Support et utilisation de Joomla! 1.0.x : gérer le contenu, les menus et les extensions natives.

Moderators: Aidan38, sarki

Forum rules
Règles du forum
Locked
teto36
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Aug 12, 2006 10:05 am
Contact:

[réglé] URLs explicites (SEF): oui et erreur 500 chez ovh

Post by teto36 » Tue Aug 29, 2006 11:52 pm

Bonjour

je suis hébergé chez ovh, j'utilise la version joolma 10.0.10 (j'ai pas encore compris comment migrer facilement à la version 11...)

mon soucis se situe au niveau de l'url rewriting.

lorsque je sélectionne URLs explicites (SEF): sur oui dans la configuration globale du site mon serveur me renvoie une erreur 500, server internal error.

voici le contenu de mon fichier .htaccess
#
#  mod_rewrite in use
#

RewriteEngine On

#  Uncomment following line if you get 403 Forbidden Error

#Options +FollowSymLinks

#  Uncomment following line if your webserver's URL
#  is not directly related to physival file paths.
#  Update YourMamboDirectory (just / for root)

#RewriteBase /YourMamboDirectory

#
#  Rules
#

RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
savez vous d'où cela peut provenir quelqu'un a-t-il déjà rencontré le problème ?

merci pour votre aide
Last edited by mejean on Tue Sep 05, 2006 8:38 pm, edited 1 time in total.

User avatar
mejean
Joomla! Hero
Joomla! Hero
Posts: 2716
Joined: Thu Aug 18, 2005 12:28 pm
Location: viewforum.php?f=19
Contact:

Re: URLs explicites (SEF): oui et erreur 500 chez ovh

Post by mejean » Wed Aug 30, 2006 6:56 am

Ton.htaccess semble dater un peu. Pour ma part, avec OpenSEF activé j'ai :
#
#  mod_rewrite in use

RewriteEngine On


#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla/MamboDirectory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section
Si tu n'utilises pas de SEF tierce partie, il faut mettre en commantaire (ajouter # en début de ligne) les lignes après "Begin - 3rd Party SEF Section" et décomanter les lignes après "Begin - Joomla! core SEF Section"
Jérôme Bussière - simple utilisateur
www.cardabelle.net

teto36
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Aug 12, 2006 10:05 am
Contact:

Re: URLs explicites (SEF): oui et erreur 500 chez ovh

Post by teto36 » Wed Aug 30, 2006 10:30 am

Bonjour,

j'ai bien remplacé mon fichier .htaccess par celui communiqué mais mon erreur reste la même.

teto36
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Aug 12, 2006 10:05 am
Contact:

Re: URLs explicites (SEF): oui et erreur 500 chez ovh

Post by teto36 » Wed Aug 30, 2006 12:55 pm

<bonjour

voici donc le .htaccess utilisé
#
# mod_rewrite in use

RewriteEngine On


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)

#RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section
cele me procure toujours la même erreur 500

d'après le support de ovh cela proviendrait de ce fameux fichier .htaccess
Last edited by mejean on Wed Aug 30, 2006 1:18 pm, edited 1 time in total.

User avatar
mejean
Joomla! Hero
Joomla! Hero
Posts: 2716
Joined: Thu Aug 18, 2005 12:28 pm
Location: viewforum.php?f=19
Contact:

Re: URLs explicites (SEF): oui et erreur 500 chez ovh

Post by mejean » Wed Aug 30, 2006 1:20 pm

Attention, comme mentionné plus haut, si tu n'tilise pas de composant spécifique pour le SEF et que tu utilises le SEF par défaut de Joomla!, tu dois avoir
#
# mod_rewrite in use

RewriteEngine On


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)

#RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section
Jérôme Bussière - simple utilisateur
www.cardabelle.net

teto36
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Aug 12, 2006 10:05 am
Contact:

Re: URLs explicites (SEF): oui et erreur 500 chez ovh

Post by teto36 » Thu Aug 31, 2006 12:45 pm

Bonjour, j'essaie d'installer le composant open SEF

mon composant open sef est activé ainsi que URLs explicites (SEF):

j'ai une erreur 404 losque j'utilise le fichier .htaccess (je sais que ce n'est pas le bon)
#
# mod_rewrite in use

RewriteEngine On


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section
et un erreur 500 lorsque j'utilise le fichier .htaccess qui devrait être le bon : (d'après ovh cela devrait fonctionner)...
#
# mod_rewrite in use

RewriteEngine On


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section
Last edited by mejean on Thu Aug 31, 2006 1:42 pm, edited 1 time in total.

teto36
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Aug 12, 2006 10:05 am
Contact:

Re: URLs explicites (SEF): oui et erreur 500 chez ovh

Post by teto36 » Fri Sep 01, 2006 12:31 pm

ok problème résolu en utilisant l efichier .htacess suivant :

## OpenSEF plain htaccess file

## Can be commented out if causes errors
Options +FollowSymLinks

## mod_rewrite in use
RewriteEngine On

## If Joomla is installed in the web server root
## RewriteBase /
## If Joomla is installed in a sub-directory
## RewriteBase /directory_name_here
RewriteBase /

## Begin 3rd Party or OpenSEF Section
##
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]  ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
##
## End 3rd Party or OpenSEF Section
merci à tous
Last edited by mejean on Fri Sep 01, 2006 12:34 pm, edited 1 time in total.


Locked

Return to “1.0 - Questions générales”