Bonjour à tous,


J'ai mis en place la réécriture d'url mais elle ne fonctionne pas.
mon site se présente comme ça : http://www.monsite.fr/dossier/index.php

et je voudrais qu'en tapant http://www.monsite.fr on arrive sur http://www.monsite.fr/dossier/index.php mais lorsque je fais cette manipulation voici le message d'erreur qui s'affiche :


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, postmaster@www.lasequencedoc.fr and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Le code de réécriture dans mon htaccess que j'ai mis à la racine:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
Options +FollowSymLinks
RewriteEngine On
 
 
RewriteCond %{HTTP_HOST} ^www.monsite.fr$ [OR]
RewriteCond %{HTTP_HOST} ^monsite.fr$ [OR]
RewriteCond %{HTTP_HOST} ^www.monsite.com$ [OR]
RewriteCond %{HTTP_HOST} ^monsite.com$
RewriteRule ^(.+)$ /site/$1 [L]
 
RewriteCond %{HTTP_HOST} ^www.monsite.fr$ [OR]
RewriteCond %{HTTP_HOST} ^monsite.fr$ [OR]
RewriteCond %{HTTP_HOST} ^www.monsite.com$ [OR]
RewriteCond %{HTTP_HOST} ^monsite.com$
RewriteRule ^$ /dossier/ [L]
Merci d'avance