You are here: Re: URL masking when using PHP sessions. « PHP Programming Language « IT news, forums, messages
Re: URL masking when using PHP sessions.

Posted by news@celticbear.com on 11/19/97 11:47

Andy Jeffries wrote:
> On Tue, 09 May 2006 14:11:31 -0700, news@celticbear.com wrote:
> > Anyway, is there some ways that the URL can be completely masked and yet
> > still allow sessions to work?
>
> Look at using mod_rewrite with [P] for proxying.
>
> Something like (but this is going from memory):
>
> <VirtualHost *>
> ServerName www.demodomainname.com
> RewriteEngine on
> RewriteRule /(.*) http://www.livedomainname.com/$1 [P]
> </VirtualHost>
>
> As I said, that's going from memory but it'll be something like that. I
> used to use it when moving sites from one server to another (so you can
> move a site even if you don't have the ability/access/time to set the DNS
> to be on a quick TTL).
>

Ah man, that was a great idea. But, not quite, but I might be missing
something.
After doing that, I go to http://www.demodomainname.com and it does
indeed show the content for www.livedomainname.com while keeping the
URL http://www.demodomainname.com!

But if I go to any link on there, it changes the URL to
hhttp://www.livedomainname.com/pagename.php.
I'm searching the concept of RewriteRule, but I can't seem to find
anything that keeps the URL the original domain name.

Any ideas?
Thanks for the idea!!
-Liam

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация