Hi,
I've searching for all the web for a solution to my problem but nothing works as i want.
The problem is however common :
I am in directory /tests/fraisport from the website root.
I want to internally redirect /tests/fraisport/xml/4/42424 to
/tests/fraisport/xmltest.php4?var1=4&var2=42424
I issue this portion of configuration lines :
RewriteEngine on
RewriteBase /tests/fraisport/
RewriteRule ^xml/(.*)/(.*)$ xmltest.php4?var1=$1&var2=$2 [T=application/x-httpd-php4,PT,L]
Redirection works well but is EXTERNAL, not INTERNAL, url is modified in user browser.
BUT if i use in browser this url :
tests/fraisport/xmltest.php4?var1=4&var2=42424.php4
it works well (internal) but var2="42424.php4"
I've tried also some combinations as :
RewriteRule ^xml/(.*)/(.*)$ xmltest.php4?var1=$1&var2=$2 [L]
RewriteRule ^xml/(.*)/(.*)$ xmltest.php4?var1=$1&var2=$2 [PT,L]
RewriteRule xml/(.*)/(.*) xmltest.php4?var1=$1&var2=$2 [L]
etc..
What's the trouble ??
I've the same problem if i try to redirect xml/4/424242.html to the same php script (xmltest.php4?var1=4&var2=424242)
Thanks for any answer, i should want to understand the matter...
DIAS DA SILVA Loic (mglcel@gcu-squad.org)