Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4454

Re: HTTP headers and header()

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.albasani.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!not-for-mail
From "M. Strobel" <sorry_no_mail_here@nowhere.dee>
Newsgroups comp.lang.php, comp.infosystems.www.servers.unix
Subject Re: HTTP headers and header()
Date Fri, 13 Jan 2012 23:32:04 +0100
Lines 27
Message-ID <9nbpn4F12qU1@mid.uni-berlin.de> (permalink)
References <d16b12f4-efb0-46e7-a585-a4c143c33818@a8g2000pbi.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de K0J8D4imyEsWrfMCFZIKpwJk6fR5+J5o35dAjJ+6nyl0rJSfQ=
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.24) Gecko/20111101 SUSE/3.1.16 Lightning/1.0b2 Thunderbird/3.1.16
In-Reply-To <d16b12f4-efb0-46e7-a585-a4c143c33818@a8g2000pbi.googlegroups.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:4454 comp.infosystems.www.servers.unix:53

Cross-posted to 2 groups.

Show key headers only | View raw


Am 13.01.2012 21:47, schrieb Sandman:
> Hello,
>    I run a website which allows users to create profiles for
> themselves, i.e. example.com/user. Recently I've had a request for
> custom domains, i.e. where vanity.user.com would take a browser to
> example.com/user.
> 
>    Using my own domain, I changed vanity.user.com so it resolves to
> the IP address of my webserver. Since I run apache, I created a
> RewriteRule so if the HOST header matched vanity.user.com it would
> redirect permanently to example.com/user.
> 
>     Upon redirection however, the location bar in my browser updates
> to example.com/user. Does anyone know if there is a way to:
> 
> 1. Redirect the vanity domain to the user's profile.
> 2. Keep the location bar the same (i.e. vanity.user.com)
> 
> I'm cross-posting to comp.lang.php because I was wondering if the
> header() function might help.
> 
> Thanks!
> Sandman

Get acquainted with Apache VirtualServer and ServerName directives.

/Str.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

HTTP headers and header() Sandman <enjoylife_95135@hotmail.com> - 2012-01-13 12:47 -0800
  Re: HTTP headers and header() The Natural Philosopher <tnp@invalid.invalid> - 2012-01-13 22:07 +0000
  Re: HTTP headers and header() "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-13 23:32 +0100
    Re: HTTP headers and header() "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-13 23:33 +0100
  Re: HTTP headers and header() Arno Welzel <usenet@arnowelzel.de> - 2012-01-14 02:40 +0100
    Re: HTTP headers and header() Sandman <enjoylife_95135@hotmail.com> - 2012-01-13 18:58 -0800
      Re: HTTP headers and header() "J.O. Aho" <user@example.net> - 2012-01-14 08:51 +0100
      Re: HTTP headers and header() Arno Welzel <usenet@arnowelzel.de> - 2012-01-14 10:37 +0100
      Re: HTTP headers and header() The Natural Philosopher <tnp@invalid.invalid> - 2012-01-14 11:09 +0000
  Re: HTTP headers and header() Jonathan Stein <jstein@image.dk> - 2012-01-14 15:26 +0100
  Re: HTTP headers and header() "Miquel van Smoorenburg" <miquels@netscum.invalid> - 2012-01-20 15:34 +0000

csiph-web