Bonjour,

je suis enrain d'essayé de faire de l'url rewriting. j'utilise pour cela un .htaccess qui contient la ligne suivante ErrorDocument 404 /mon_site/index.php5

ceci fonctionne, je retombe bien sur cette page lorsque j'ai une erreur 404, j'ai mis en place un petit script en php qui analyse l'url et fait e conséquence ce qu'il faut, maintenant, mon problème, c'est que je n'arrive pas a récupérer les valeur passé par $_POST

voici ce que donne print_r($GLOBALS):
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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
 
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/ati/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin
        )
 
    [HTTP_ENV_VARS] => Array
        (
            [PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/ati/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin
        )
 
    [_POST] => Array
        (
        )
 
    [HTTP_POST_VARS] => Array
        (
        )
 
    [_GET] => Array
        (
        )
 
    [HTTP_GET_VARS] => Array
        (
        )
 
    [_COOKIE] => Array
        (
            [PHPSESSID] => f2c94ef5ca7e94cf91c6687ac613f17a
        )
 
    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => f2c94ef5ca7e94cf91c6687ac613f17a
        )
 
    [_SERVER] => Array
        (
            [REDIRECT_REQUEST_METHOD] => POST
            [REDIRECT_STATUS] => 404
            [HTTP_HOST] => localhost
            [HTTP_USER_AGENT] => Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.0.1) Gecko/20060319 Firefox/1.5.0.1
            [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_LANGUAGE] => en-us,fr;q=0.8,fr-fr;q=0.5,en;q=0.3
            [HTTP_ACCEPT_ENCODING] => gzip,deflate
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_KEEP_ALIVE] => 300
            [HTTP_CONNECTION] => keep-alive
            [HTTP_REFERER] => http://localhost/new/install/database/
            [HTTP_COOKIE] => PHPSESSID=f2c94ef5ca7e94cf91c6687ac613f17a
            [CONTENT_TYPE] => application/x-www-form-urlencoded
            [CONTENT_LENGTH] => 30
            [PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/ati/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin
            [SERVER_SIGNATURE] => <address>Apache Server at localhost Port 80</address>
 
            [SERVER_SOFTWARE] => Apache
            [SERVER_NAME] => localhost
            [SERVER_ADDR] => 127.0.0.1
            [SERVER_PORT] => 80
            [REMOTE_ADDR] => 127.0.0.1
            [DOCUMENT_ROOT] => /var/www/localhost/htdocs
            [SERVER_ADMIN] => root@localhost
            [SCRIPT_FILENAME] => /var/www/localhost/htdocs/new/index.html
            [REMOTE_PORT] => 34118
            [REDIRECT_URL] => /new/install/database/test_db_connect
            [GATEWAY_INTERFACE] => CGI/1.1
            [SERVER_PROTOCOL] => HTTP/1.1
            [REQUEST_METHOD] => GET
            [QUERY_STRING] => 
            [REQUEST_URI] => /new/install/database/test_db_connect
            [SCRIPT_NAME] => /new/index.html
            [PHP_SELF] => /new/index.html
            [REQUEST_TIME] => 1142862391
            [argv] => Array
                (
                )
 
            [argc] => 0
        )
 
    [HTTP_SERVER_VARS] => Array
        (
            [REDIRECT_REQUEST_METHOD] => POST
            [REDIRECT_STATUS] => 404
            [HTTP_HOST] => localhost
            [HTTP_USER_AGENT] => Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.0.1) Gecko/20060319 Firefox/1.5.0.1
            [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_LANGUAGE] => en-us,fr;q=0.8,fr-fr;q=0.5,en;q=0.3
            [HTTP_ACCEPT_ENCODING] => gzip,deflate
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_KEEP_ALIVE] => 300
            [HTTP_CONNECTION] => keep-alive
            [HTTP_REFERER] => http://localhost/new/install/database/
            [HTTP_COOKIE] => PHPSESSID=f2c94ef5ca7e94cf91c6687ac613f17a
            [CONTENT_TYPE] => application/x-www-form-urlencoded
            [CONTENT_LENGTH] => 30
            [PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/opt/ati/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin
            [SERVER_SIGNATURE] => <address>Apache Server at localhost Port 80</address>
 
            [SERVER_SOFTWARE] => Apache
            [SERVER_NAME] => localhost
            [SERVER_ADDR] => 127.0.0.1
            [SERVER_PORT] => 80
            [REMOTE_ADDR] => 127.0.0.1
            [DOCUMENT_ROOT] => /var/www/localhost/htdocs
            [SERVER_ADMIN] => root@localhost
            [SCRIPT_FILENAME] => /var/www/localhost/htdocs/new/index.html
            [REMOTE_PORT] => 34118
            [REDIRECT_URL] => /new/install/database/test_db_connect
            [GATEWAY_INTERFACE] => CGI/1.1
            [SERVER_PROTOCOL] => HTTP/1.1
            [REQUEST_METHOD] => GET
            [QUERY_STRING] => 
            [REQUEST_URI] => /new/install/database/test_db_connect
            [SCRIPT_NAME] => /new/index.html
            [PHP_SELF] => /new/index.html
            [REQUEST_TIME] => 1142862391
            [argv] => Array
                (
                )
 
            [argc] => 0
        )
 
    [_FILES] => Array
        (
        )
 
    [HTTP_POST_FILES] => Array
        (
        )
 
    [_REQUEST] => Array
        (
            [PHPSESSID] => f2c94ef5ca7e94cf91c6687ac613f17a
        )
 
    [HTTP_SESSION_VARS] => Array
        (
            [user] => 
        )
 
    [_SESSION] => Array
        (
            [user] => 
        )
 
    [s] => site Object
        (
            [title_page:protected] => titre du site dans la page
            [title_win:protected] => titre du site dans la barre d'adresse
            [css_file:protected] => style.css
        )
 
)
alors voila, $_POST est vide et je ne sais plus du tout comment faire.

ps: je ne sais pas si j'ai bien fait de poster ici ou si apache aurai été mieux.