Salut,

J'ai un petit soucis avec l'url rewriting.

En effet, voici un .htaccess que j'ai mis dans /home/moi/public_html (public_html est bien l'UserDir, pas de soucis de ce côté là).
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^test/a.php$ index.php [L]
Or, quand j'accède à http://leserveur/~moi/test/a.php, il me sort :
Not Found

The requested URL /home/moi/public_html/index.php was not found on this server.
Desfois que, voici le httpd.conf
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
17
 
LoadModule userdir_module /usr/lib/apache2/modules/mod_userdir.so
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
            Order allow,deny
            Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
            Order deny,allow
            Deny from all
    </Limit>
</Directory>
Il semblerait qu'il faille ajouter un Override All quelque part...
Peut-être que je dois rajouter à la main un LoadModule pour mon mod_rewrite ? Ce qui est bizarre c'est qu'apache sait que test/a.php doit renvoyer index.php... mais qu'il ne le fait pas (enfin, qu'il le fait mal).

à tous de votre aide !