Re: [PHP-ES] apache y htaccess

[email protected] (Lucas Crisman)
Newsgroups php.general.es
Message-ID <[email protected]>
  On 29/09/2010 10:07, Francisco Javier wrote:
> Disculpas por el off topic.
>
> Quiero proteger el raiz de un web, pero me gustaria que el index.htm pudiera ser visto por todo el mundo sin tener que logearse, ¿es posible? gracias.
>
> Salu2 Fran
>
>
>
>
>

Fran:

Si el único archivo que necesitas hacer público es tu index.htm entonces 
una solucion práctica y rápida sería utilizando mod_rewrite de la 
siguiente forma en tu .htaccess:

################################
RewriteEngine on
RewriteRule .* index.htm
################################

Espero haberte servido de ayuda.

Saludos,

Lucas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.