Re: Reset the REQUEST_URI variable with mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <howachen@xxxxxxxxx> wrote:
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 User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux