Outils pour utilisateurs

Outils du site


comment_activer_l_url_rewriting_sur_un_site_heberge_chez_ovh
  1. Avant d'intervenir sur votre site Web, il est conseillé de réaliser une sauvegarde du site Web (Fichiers et Base de données)
  2. Créer votre fichier .htaccess (voir exemple ci-dessous)
  3. Dans la partie Administration de votre site Web Joomla, aller dans le menu Site / Configuration Générale, puis dans la partie Paramètres SEO, cocher l'option URLs explicites (SEF) et Utiliser le module Apachemod_rewrite (réécriture au “vol” des URLs)
  4. Dans Composant / Kunena Forum / Configuration du forum, dans la section Paramètres SEO, mettez Search Engine Friendly URLs à Oui.
  5. Pour Joomgallery, voir le lien suivant : URL Rewriting avec Joomgallery

Exemple de fichier .htaccess sur un hébergement mutualisé

SetEnv REGISTER_GLOBALS 0
 
SetEnv PHP_VER 5
 
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
 
#
# 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
#
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
comment_activer_l_url_rewriting_sur_un_site_heberge_chez_ovh.txt · Dernière modification: 2018/12/22 22:32 (modification externe)