Il manque un slash dans mon .htaccess

Nouveau WRInaute
Bonjour !
Je viens de changer mon site d'hebergeur et depuis la fonction url rewriting ne fonctionne plus :( ... l'hebergement a pourtant les fonctions requises, il me dit que c'est sans doute un petit slash "/" qu'il manque a chaque url...

Le problême c'est eu j'emploie un module tout fait pour mon site postnuke et que ce fichier .htaccess pourmoi, c'est du CHINOIS !!

Ou puis je mettre ce ou ces slashs ? comment faire ? A l'aide !
:oops: désole pour la longueur...


Code:
 # CHTEKK
#
# LongiTEKK.com NETWORK Admin - chtekk@longitekk.com
# MaxDev Devel - chtekk@maxdev.com

# ENG
# Place this file in your MD-Pro root directory, alongside the main index.php file
# ITA
# Inserisci questo file nella tua cartella principale di MD-Pro, assieme al file index.php principale

# ENG
# The "Options FollowSymLinks" line may be deleted, since on certain hosts it causes a config error!
# ITA
# La riga "Options FollowSymLinks" può a volte essere eliminata, siccome causa errori di
# configurazione su certi hosts!

Options FollowSymLinks

RewriteEngine On


# Exclude certain directories / Escludi certe cartelle
RewriteRule ^modules/.*$ - [PT]
RewriteRule ^javascript/.*$ - [PT]
# Uncomment the following line if using MultiSite / Scommentare la seguente linea se si usa il Multisite
# RewriteRule ^parameters/.*$ - [PT]
RewriteRule ^themes/.*$ - [PT]

# ENG
# This option is for use in Virtual Hosts or .htaccess files to inherit rewrite rules in the main section,
# so if you have your own server you don't have to copy the rules into every Virtual Host you run.
# Will cause an error if placed in the main httpd.conf section, as there's nothing to inherit.
# ITA
# Quest'opzione è per l'uso in Virtual Hosts o in file .htaccess per inserire le regole di riscrittura solo
# nella sezione principale, così se possiedi un tuo server non dovrai copiare le regole di riscrittura in
# ogni Virtual Host che hai. Causerà errori se viene inserita nella sezione principale dell'httpd.conf.

# RewriteOptions 'inherit'

# -- This is to deactivate urls like this: sitemap.html?POSTNUKESID=9ee22afbb07b4d9987a1f81b89748767
# -- Because Searchengines don't follow links like this
# -- PLEASE REMOVE IF YOU GET AN ERROR 500 !
php_flag session.use_trans_sid off

# -- To execute php in html
AddType application/x-httpd-php php php4 php3 html htm

# index.php and user.php
RewriteRule ^changelang-([^-]+)\.html$ index.php?newlang=$1 [L,NC,NS]
RewriteRule ^changetheme-([^-]+)\.html$ index.php?theme=$1 [L,NC,NS]
RewriteRule ^index\.html$ index.php [L,NC,NS]
RewriteRule ^user\.html$ user.php [L,NC,NS]

# ppnews
RewriteRule ^ppnews-index\.html$ index.php?module=ppnews&choix=index [L,NC,NS]
RewriteRule ^ppnews-([^-]+)\.html$ index.php?module=ppnews&choix=$1 [L,NC,NS]

# My_eGallery
RewriteRule ^MeG-([^-]+)\.html$ index.php?module=My_eGallery&do=$1 [L,NC,NS]
RewriteRule ^MeG-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=My_eGallery&do=$1&$2=$3 [L,NC,NS]
RewriteRule ^MeG-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=My_eGallery&do=$1&$2=$3&$4=$5 [L,NC,NS]
RewriteRule ^MeG-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=My_eGallery&do=$1&$2=$3&$4=$5&$6=$7 [L,NC,NS]

.............
 
Nouveau WRInaute
J'ai une erreur server 500 donc j'ai supprimé ça :

Code:
# -- This is to deactivate urls like this: sitemap.html?POSTNUKESID=9ee22afbb07b4d9987a1f81b89748767 
# -- Because Searchengines don't follow links like this 
# -- PLEASE REMOVE IF YOU GET AN ERROR 500 ! 
php_flag session.use_trans_sid off

mais ça ne marche toujours pas... :?
 
A
Anonymous
Guest
Ajoutes le slash devant les redirections, exemples
Code:
RewriteRule ^index\.html$  /index.php [L,NC,NS] 
RewriteRule ^user\.html$  /user.php [L,NC,NS]
dk
 
Nouveau WRInaute
Visiblement, ce n'etait pas un problême de slash, je les ai remis et j'ai une erreur 404... :(

Quelqu'un sait pourquoi ça cloche ?

Code:
RewriteEngine On

# Exclude certain directories / Escludi certe cartelle
RewriteRule ^modules/.*$ - [PT]
RewriteRule ^javascript/.*$ - [PT]
# Uncomment the following line if using MultiSite / Scommentare la seguente linea se si usa il Multisite
# RewriteRule ^parameters/.*$ - [PT]
RewriteRule ^themes/.*$ - [PT]

# -- To execute php in html
AddType application/x-httpd-php php php4 php3 html htm

# index.php and user.php
RewriteRule ^changelang-([^-]+)\.html$ /index.php?newlang=$1 [L,NC,NS]
RewriteRule ^changetheme-([^-]+)\.html$ /index.php?theme=$1 [L,NC,NS]
RewriteRule ^index\.html$ /index.php [L,NC,NS]
RewriteRule ^user\.html$ /user.php [L,NC,NS]

# ppnews
RewriteRule ^ppnews-index\.html$ /index.php?module=ppnews&choix=index [L,NC,NS]
RewriteRule ^ppnews-([^-]+)\.html$ /index.php?module=ppnews&choix=$1 [L,NC,NS]

# My_eGallery
RewriteRule ^MeG-([^-]+)\.html$ /index.php?module=My_eGallery&do=$1 [L,NC,NS]
RewriteRule ^MeG-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=My_eGallery&do=$1&$2=$3 [L,NC,NS]
RewriteRule ^MeG-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=My_eGallery&do=$1&$2=$3&$4=$5 [L,NC,NS]
RewriteRule ^MeG-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=My_eGallery&do=$1&$2=$3&$4=$5&$6=$7 [L,NC,NS]
...........................................
 
Discussions similaires
Haut