This is a discussion on Can PHP help with masking URLs? within the PHP Language forums, part of the PHP Programming Forums category; Hi, Not sure how this is done, but since our application is written in PHP, I thought I'd ask ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
Not sure how this is done, but since our application is written in PHP, I thought I'd ask first here. We have the domain http://bnf.drgreene.com/ forwarding to http://67.192.249.18/bnf/ But notice when you click on http://bnf.drgreene.com, the address in the URL changes to the other IP listed. Is there a way to keep the URL bnf.drgreene.com min the URL browser bar? We are using Apache 2 on Linux with PHP 5.. Thanks, - Dave |
|
|||
|
laredotornado@zipmail.com wrote:
> Hi, > > Not sure how this is done, but since our application is written in > PHP, I thought I'd ask first here. We have the domain > > http://bnf.drgreene.com/ > > forwarding to > > http://67.192.249.18/bnf/ > > But notice when you click on http://bnf.drgreene.com, the address in > the URL changes to the other IP listed. Is there a way to keep the > URL bnf.drgreene.com min the URL browser bar? That is the sort of thing that phishers would love to do. |
|
|||
|
..oO(laredotornado@zipmail.com)
>Not sure how this is done, but since our application is written in >PHP, I thought I'd ask first here. We have the domain > >http://bnf.drgreene.com/ > >forwarding to > >http://67.192.249.18/bnf/ > >But notice when you click on http://bnf.drgreene.com, the address in >the URL changes to the other IP listed. Is there a way to keep the >URL bnf.drgreene.com min the URL browser bar? Sure. Host the entire website on the same server where the domain points to. If the site is split across several servers or the domain points to a different machine, then of course the URLs would change as seen above. One document, one URL. This has nothing to do with PHP, but with server and DNS configuration. Micha |
|
|||
|
laredotornado@zipmail.com wrote:
> Hi, > > Not sure how this is done, but since our application is written in > PHP, I thought I'd ask first here. We have the domain > > http://bnf.drgreene.com/ > > forwarding to > > http://67.192.249.18/bnf/ > > But notice when you click on http://bnf.drgreene.com, the address in > the URL changes to the other IP listed. Is there a way to keep the > URL bnf.drgreene.com min the URL browser bar? > > We are using Apache 2 on Linux with PHP 5.. Thanks, - Dave > No. But as others have noted, this is not a PHP problem - no PHP code is being executed to do the redirect. Try alt.apache.configuration - but they'll tell you it can't be done. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|||
|
On Jun 24, 5:06*pm, "laredotorn...@zipmail.com"
<laredotorn...@zipmail.com> wrote: > Hi, > > Not sure how this is done, but since our application is written in > PHP, I thought I'd ask first here. *We have the domain > > http://bnf.drgreene.com/ > > forwarding to > > http://67.192.249.18/bnf/ > > But notice when you click onhttp://bnf.drgreene.com, the address in > the URL changes to the other IP listed. *Is there a way to keep the > URL bnf.drgreene.com min the URL browser bar? > > We are using Apache 2 on Linux with PHP 5.. *Thanks, - Dave I used an online tool to look at the headers, I'm getting a 302 redirect to the IP from the domain. This looks like a configuration issue that handles forwarding. Most likely apache, but if you setup your forwarding via your register [like godaddy for example] then you just need to change it on there. |
|
|||
|
On Jun 24, 10:06 pm, "laredotorn...@zipmail.com"
<laredotorn...@zipmail.com> wrote: > Hi, > > Not sure how this is done, but since our application is written in > PHP, I thought I'd ask first here. We have the domain > > http://bnf.drgreene.com/ > > forwarding to > > http://67.192.249.18/bnf/ > > But notice when you click onhttp://bnf.drgreene.com, the address in > the URL changes to the other IP listed. Is there a way to keep the > URL bnf.drgreene.com min the URL browser bar? > > We are using Apache 2 on Linux with PHP 5.. Thanks, - Dave You need to set up an Apache ProxyPass (if that's the server you're using of course). Try the Apache groups for more details. |