Re: Please dirrect me -- headers ????

From: Date: Mon, 14 Jul 2003 18:51:08 +0000
Subject: Re: Please dirrect me -- headers ????
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-155140@lists.php.net to get a copy of this message
Cant you edit the httpd.conf? I know there might be plenty of reasons why not to...but im just checking. =) Server mydom1.com Alias mydom.com "Anthony" <atampone@attechcomputer.com> wrote in message news:20030714174947.55784.qmail@pb1.pair.com... > Thanks for the links, I'm going through them now.... > as far as the location thing. I don't acutaly want to send the user to a > different site, I just want to change what apears in the user's address bar. > in my example, both www.mydom1.com and www.mydom.com point to the same site > and weberver. It's simply that one is the old address, and I want users to > see teh new address, even if they type in the old one. > > - Anthony > > "Ryan Gibson" <ryan_gibson@jmp-partnership.co.uk> wrote in message > news:BB389B3A.59CB%ryan_gibson@jmp-partnership.co.uk... > > Hi, > > > > Headers have nothing to do with the <head> tag, the headers are sent > before > > the html page, ie they are not part of the html document, but something > sent > > by the web server before the page is sent to the user > > > > > > Try: > > > > http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html > > > > And > > > > http://www.cs.tut.fi/~jkorpela/http.html > > > > As for question 2, if you want to redirect the user to the other website > use > > the location header to redirect them to the other site (otherwise you'll > > have to redirect them to the other site, then use frames to open the > content > > on the original site) > > > > > > On 14/7/03 5:16 pm, "Anthony" <atampone@attechcomputer.com> wrote: > > > > > This isn't necessarily PHP specific, but I'm looking for more > information on > > > HTTP headers. I'd like to know what headers I should send and why. I > want > > > my code to send out w3c compliant HTML. I'm confused on exactly what > > > headers do, and the difference between HTTP headers and information > > > contained within the <HEAD> tag. Multiple google searches have gotten > me > > > only more confused. Someone please send me in the right direction :) > > > > > > on an a possible similar note, I have a domain name www.mydom1.com and > when > > > the user goes to it, I want it so say www.mydom.com in the browser > address > > > bar. Can I do this by sending certain headers? (I have both domains > > > pointing to the same server) ... should/could I do something like this > > > through PHP or is there something I can set in Apache to do the same > thing? > > > > > > Simply confused, > > > - Anthony > > > > > > > > > > Ryan Gibson > > ----------- > > ryan_gibson@jmp-partnerhip.co.uk > > > >

« previous php.general (#155140) next »