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 Andy Jeffries on 05/10/06 00:17

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

Cheers,


Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

 

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

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