You are here: Re: Redirect without changing `address` in your browser? « PHP Programming Language « IT news, forums, messages
Re: Redirect without changing `address` in your browser?

Posted by Jerry Stuckle on 10/05/06 13:52

howachen@gmail.com wrote:
> phpmyforum@googlemail.com 寫道:
>
>
>>>>>i don't want the browser to showhttp://www.example.com
>>
>>Yes, just use Rewrite-Rules with "P" flag like this:
>>
>>RewriteRule ^(.*)$ http://www.example.com$1 [P,L]
>>
>>Not perfect, but a solution.
>
>
> Hello, this seems to be my solution...
>
> but will there be any overhead in doing this? i mean the proxy pass?
>

I see someone else beat me to it - I was going to suggest the same thing :-)

Yes, there's always overhead when you're changing the default behavior.
There is less if you place this in the httpd.conf file than in
..htaccess, but it's still there.

The biggest problem with .htaccess is it needs to be read every time a
file in this directory or any subdirectory is accessed. But for
something this small it will probably be cached by the file system most
of the time anyway, so it wouldn't make a lot of difference.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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