Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4455
| 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 | 2012-01-13 23:33 +0100 |
| Message-ID | <9nbpqaF12qU2@mid.uni-berlin.de> (permalink) |
| References | <d16b12f4-efb0-46e7-a585-a4c143c33818@a8g2000pbi.googlegroups.com> <9nbpn4F12qU1@mid.uni-berlin.de> |
Cross-posted to 2 groups.
Am 13.01.2012 23:32, schrieb M. Strobel: > 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. Ops, VirtualHost
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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