Ver Mensaje Individual
  #7 (permalink)  
Antiguo 14/11/2010, 02:44
miriamgomez
 
Fecha de Ingreso: abril-2008
Mensajes: 348
Antigüedad: 16 años, 7 meses
Puntos: 1
Respuesta: Comportamiendo .php en una pagina .html

Hola:

Te adjunto el fichero htaccess :

RewriteEngine on

<Files plantilla.htm>
ForceType application/x-httpd-php
</Files>

<Files "index.htm">
ForceType application/x-httpd-php
</Files>

php_value register_globals on
php_value upload_max_filesize 6M

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^enlaces.htm$ "http\:\/\/tumundobdsm\.com\/hojas\ con\ plantilla\/enlaces\.htm" [R=301,L]

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^biblioteca.htm$ "http\:\/\/tumundobdsm\.com\/hojas\ con\ plantilla\/biblioteca\.htm" [R=301,L]

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^bibli.htm$ "http\:\/\/tumundobdsm\.com\/hojas\ con\ plantilla\/bibli\.htm" [R=301,L]

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^contactosp.htm$ "http\:\/\/tumundobdsm\.com\/hojas\ con\ plantilla\/contactosp\.htm" [R=301,L]

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^normas.htm$ "http\:\/\/tumundobdsm\.com\/hojas\ con\ plantilla\/normas\.htm" [R=301,L]

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^eventos1.htm$ "http\:\/\/tumundobdsm\.com\/hojas\ con\ plantilla\/eventos\/eventos\.htm" [R=301,L]

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^eventos.htm$ "http\:\/\/tumundobdsm\.com\/hojas\ con\ plantilla\/eventos\.htm" [R=301,L]

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^bricop.htm$ "http\:\/\/www\.tumundobdsm\.com\/hojas\ con\ plantilla\/bricop\.htm" [R=301,L]

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^hojas\ con\ plantilla\/biblioteca\.htm\ $ "http\:\/\/www\.tumundobdsm\.com\/hojas\ con\ plantilla\/biblioteca\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^hojas\ con\ plantilla\/servicios_bdsm\.php$ "http\:\/\/www\.tumundobdsm\.com\/Dominas_Amas_profesionales_BDSM\.htm" [R=301,L]

RewriteCond %{HTTP_HOST} ^tumundobdsm.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tumundobdsm.com$
RewriteRule ^hojas\ con\ plantilla\/contactosp\.htm$ "http\:\/\/www\.tumundobdsm\.com\/hojas\ con\ plantilla\/contactos_bdsm\.htm" [R=301,L]


Este es el truco? no tengo ni idea

un saludo?