You are here: Re: List Fails on some computers - www missing in url « PHP Programming Language « IT news, forums, messages
Re: List Fails on some computers - www missing in url

Posted by Rik on 03/06/07 05:43

Vic Spainhower <vic@showsec.com> wrote:

>>>> www.example.com is not the same as example.com. It may or may not =
be =

>>>> on
>>>> the same server. And if it were on a different server, there could=
=

>>>> be a
>>>> security exposure.
>>>>
>>> It is always the same domain. What server hardware is used is =

>>> irrelevant.
>>> An HTML request for www.thisdoman.com will always produce the same
>>> resulting connection as thisdomain.com.

No it will not, and I'm amazed you dare to state such a huge error as an=
=

absolute truth.

> I placed the following re-direct in index.php and it goes into a =

> re-direct
> loop. This would tell me they are in fact the same domain and a re-dir=
ect
> will not solve the problem.
>
> <meta http-equiv=3D"REFRESH" content=3D"2; =

> URL=3Dhttp://www.mysite.com">

You have to check wether they're at the right domain offcourse. If it =

resolves to the same directory, I'd either make _all_ links relative, or=
=

I'd use mod_rewrite in apache for this:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ %{SERVER_PROTOCOL}://www.%{HTTP_HOST}/$1 [R,QSA]

-- =

Rik Wasmus
Posted on Usenet: any site claiming this as original content or me as an=
=

contributing member is stealing content.
Ask Smart Questions: http://tinyurl.com/anel

 

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

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