[us...@httpd] Reset the REQUEST_URI variable with mod_rewrite

2009-09-22 Thread howard chen
Hello, Consider rewrite rule as: RewriteRule ^/test.php /test2.php [PT,L] So when I access it via http://www.example.com/test.php I want the field REQUEST_URI shown as test2.php, is it possible? THanks. - The official

Re: [us...@httpd] Reset the REQUEST_URI variable with mod_rewrite

2009-09-22 Thread sravan kumar
Hello RewriteRule ^/test.php /test2.php [R=301,L] use this in ur redirection , it will redirect as you expected. Sravan On Tue, Sep 22, 2009 at 6:39 PM, howard chen howac...@gmail.com wrote: Hello, Consider rewrite rule as: RewriteRule ^/test.php /test2.php [PT,L] So when I access

Re: [us...@httpd] Reset the REQUEST_URI variable with mod_rewrite

2009-09-22 Thread howard chen
Hello, RewriteRule ^/test.php  /test2.php [R=301,L] use this in ur redirection , it will redirect as you expected. In fact, I can do it using the P flag (proxy). But just to know if anything smater... - The official