Re: [users@httpd] [RESOLVED] Regular Expression Question

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

 



i mean, looking at the script, which i yanked from an online tutorial, it's obvious where the problem is:

<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.foo.com"; );
?>

i just need to figure out how in php to get it to respect the entire original file path.

it probably won't be too hard. if i get stuck, i'll post on a php list.


okay, got it. i hate leaving threads unfinished, because it's annoying to follow a thread in an archive and hit an unresolved dead end, so for the sake of those reading this years from now, it's:

<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.foo.com"; . $_SERVER["REQUEST_URI"] );
?>


... or at least that seems to be working nicely thus far.

the end.

- chase

ps: thanks to dan for getting me back on track with this more elegant (IMO) solution.



---------------------------------------------------------------------
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