FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » HTTP headers and header()
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: HTTP headers and header() [message #176652 is a reply to message #176642] Sat, 14 January 2012 14:26 Go to previous messageGo to previous message
Jonathan Stein is currently offline  Jonathan Stein
Messages: 43
Registered: September 2010
Karma:
Member
Den 13-01-2012 21:47, Sandman skrev:

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

How did you do this? Rewrites should not issue a redirect unless you
specifically ask for it (with the "R" flag in Apache).

Now that you're posting in the PHP group, you could also rewrite ALL
requests that do NOT have example.com as the host to a PHP script and
let that script look op the userprofile to show.

Start with the Apache documentation - there ain't much you can't do with
a rewrite. ;-)

Regards

Jonathan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: error from phpadmin
Next Topic: list() Struktur auslagern
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 04:13:07 GMT 2024

Total time taken to generate the page: 0.05922 seconds